pci: fix PCI_DPRINTF() wrt variadic macro.
add missing ## in PCI_DPRINTF() to compile. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
783c4f5835
commit
2e49d64ac7
2
hw/pci.c
2
hw/pci.c
|
@ -29,7 +29,7 @@
|
||||||
|
|
||||||
//#define DEBUG_PCI
|
//#define DEBUG_PCI
|
||||||
#ifdef DEBUG_PCI
|
#ifdef DEBUG_PCI
|
||||||
# define PCI_DPRINTF(format, ...) printf(format, __VA_ARGS__)
|
# define PCI_DPRINTF(format, ...) printf(format, ## __VA_ARGS__)
|
||||||
#else
|
#else
|
||||||
# define PCI_DPRINTF(format, ...) do { } while (0)
|
# define PCI_DPRINTF(format, ...) do { } while (0)
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue