[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180914015516.GA1108@jagdpanzerIV>
Date: Fri, 14 Sep 2018 10:55:16 +0900
From: Sergey Senozhatsky <sergey.senozhatsky.work@...il.com>
To: Steven Rostedt <rostedt@...dmis.org>
Cc: Sergey Senozhatsky <sergey.senozhatsky.work@...il.com>,
Alexander Potapenko <glider@...gle.com>,
Sergey Senozhatsky <sergey.senozhatsky@...il.com>,
Dmitriy Vyukov <dvyukov@...gle.com>,
penguin-kernel@...ove.sakura.ne.jp,
kbuild test robot <fengguang.wu@...el.com>, pmladek@...e.com,
syzkaller <syzkaller@...glegroups.com>,
LKML <linux-kernel@...r.kernel.org>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: [PATCH] printk: inject caller information into the body of
message
On (09/13/18 21:12), Steven Rostedt wrote:
> >
> > +#define __SEQ_BUF_INITIALIZER(buf, length) { \
> > + .buffer = (buf), \
> > + .size = (length), \
> > + .len = 0, \
> > + .readpos = 0, }
>
> Nit, but the end bracket '}' should be on it's own line. Even when
> part of a macro.
No prob, will change.
I thought about putting it on its own line, but then checked
include/linux/wait.h - __WAITQUEUE_INITIALIZER and
__WAIT_QUEUE_HEAD_INITIALIZER.
> > +#define DEFINE_PR_LINE(lev, name) \
> > + char __line[__PR_LINE_BUF_SZ]; \
>
> To protect against name space collision could you use:
>
> char __line_##name[__PR_LINE_BUF_SZ];
Yes.
> The rest looks fine to me.
>
> Acked-by: Steven Rostedt (VMware) <rostedt@...dmis.org>
Thanks.
Just, to make sure, we are OK with seq_buf dependency and want
anyone who wants to use pr_line to include linux/seq_buf.h?
-ss
Powered by blists - more mailing lists