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) <[email protected]>

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

Reply via email to