Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 304088
b: refs/heads/master
c: 5fc3249
h: refs/heads/master
v: v3
  • Loading branch information
Kay Sievers authored and Greg Kroah-Hartman committed May 8, 2012
1 parent 59f85c2 commit 7689f9f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a9e73211fb0fc875637793a8af770f3678b6c278
refs/heads/master: 5fc3249068c1ed87c6fd485f42ced24132405629
5 changes: 4 additions & 1 deletion trunk/kernel/printk.c
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@ static ssize_t devkmsg_read(struct file *file, char __user *buf,
{
struct devkmsg_user *user = file->private_data;
struct log *msg;
u64 ts_usec;
size_t i;
size_t len;
ssize_t ret;
Expand Down Expand Up @@ -441,8 +442,10 @@ static ssize_t devkmsg_read(struct file *file, char __user *buf,
}

msg = log_from_idx(user->idx);
ts_usec = msg->ts_nsec;
do_div(ts_usec, 1000);
len = sprintf(user->buf, "%u,%llu,%llu;",
msg->level, user->seq, msg->ts_nsec / 1000);
msg->level, user->seq, ts_usec);

/* escape non-printable characters */
for (i = 0; i < msg->text_len; i++) {
Expand Down

0 comments on commit 7689f9f

Please sign in to comment.