Messages in this thread | | | From | David Laight <> | Subject | RE: [PATCH] net: vxge: fix wrong __VA_ARGS__ usage | Date | Tue, 17 Mar 2020 10:10:53 +0000 |
| |
> > printk in macro vxge_debug_ll uses __VA_ARGS__ without "##" prefix, > > it causes a build error when there is no variable > > arguments(e.g. only fmt is specified.). > > > > Signed-off-by: Zheng Wei <wei.zheng@vivo.com> > > Does this even happen right now? Anyways, applied.
I thought most of the compilers removed the lurking ',' using some heristic.
A safer alternative is to include the 'fmt' in the ... then there is always one argument.
David
- Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)
| |