lkml.org 
[lkml]   [2018]   [Dec]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] printk: don't unconditionally shortcut print_time()
On (12/02/18 14:02), Tetsuo Handa wrote:
>
> @@ -1541,11 +1545,13 @@ int do_syslog(int type, char __user *buf, int len, int source)
> } else {
> u64 seq = syslog_seq;
> u32 idx = syslog_idx;
> + bool f = syslog_partial ? syslog_time : printk_time;
^^^^^^

> while (seq < log_next_seq) {
> struct printk_log *msg = log_from_idx(idx);
>
> - error += msg_print_text(msg, true, NULL, 0);
> + error += msg_print_text(msg, true, f, NULL, 0);
^^^^

> + f = printk_time;
^^^

> idx = log_next(idx);
> seq++;

Can we please have something better than 'f'?

-ss

\
 
 \ /
  Last update: 2018-12-04 03:57    [W:0.111 / U:16.440 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site