lkml.org 
[lkml]   [2020]   [Feb]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] tools/bootconfig: Fix wrong __VA_ARGS__ usage
On Mon, 10 Feb 2020 20:50:42 +1100
Michael Ellerman <mpe@ellerman.id.au> wrote:

> > diff --git a/tools/bootconfig/include/linux/printk.h b/tools/bootconfig/include/linux/printk.h
> > index 017bcd6912a5..e978a63d3222 100644
> > --- a/tools/bootconfig/include/linux/printk.h
> > +++ b/tools/bootconfig/include/linux/printk.h
> > @@ -7,7 +7,7 @@
> > /* controllable printf */
> > extern int pr_output;
> > #define printk(fmt, ...) \
> > - (pr_output ? printf(fmt, __VA_ARGS__) : 0)
> > + (pr_output ? printf(fmt, ##__VA_ARGS__) : 0)
> >
> > #define pr_err printk
> > #define pr_warn printk
>
> Tested-by: Michael Ellerman <mpe@ellerman.id.au>

Thanks! I'll rebase my branch with this.

-- Steve

\
 
 \ /
  Last update: 2020-02-10 18:08    [W:0.243 / U:0.376 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site