Commit 4c5a7705 authored by Joe Perches's avatar Joe Perches Committed by Richard Weinberger
Browse files

um: Neaten vu_err macro definition



Defining a macro with ... and __VA_ARGS__ (without ##) can cause
compilation errors if a macro use does not have additional args.

Add ## to __VA_ARGS__ in the macro definition.

Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent bc8f8e4e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -74,7 +74,7 @@ struct virtio_uml_vq_info {

extern unsigned long long physmem_size, highmem;

#define vu_err(vu_dev, ...)	dev_err(&(vu_dev)->pdev->dev, __VA_ARGS__)
#define vu_err(vu_dev, ...)	dev_err(&(vu_dev)->pdev->dev, ##__VA_ARGS__)

/* Vhost-user protocol */