aboutsummaryrefslogtreecommitdiffstats
path: root/hw/rc4030.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-05-13 17:53:17 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-05-13 17:53:17 +0000
commit001faf3269541f0231482e0fccc846f62f8930b2 (patch)
treea5a7b0143f3fd9d71e42eb03c4967f8763ec3501 /hw/rc4030.c
parent4cfce484c5d7e514c23689f3194055b5463d6054 (diff)
Replace gcc variadic macro extension with C99 version
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/rc4030.c')
-rw-r--r--hw/rc4030.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/hw/rc4030.c b/hw/rc4030.c
index 2f9bb0e43..7fe84ff49 100644
--- a/hw/rc4030.c
+++ b/hw/rc4030.c
@@ -33,16 +33,16 @@
//#define DEBUG_RC4030_DMA
#ifdef DEBUG_RC4030
-#define DPRINTF(fmt, args...) \
-do { printf("rc4030: " fmt , ##args); } while (0)
+#define DPRINTF(fmt, ...) \
+do { printf("rc4030: " fmt , ## __VA_ARGS__); } while (0)
static const char* irq_names[] = { "parallel", "floppy", "sound", "video",
"network", "scsi", "keyboard", "mouse", "serial0", "serial1" };
#else
-#define DPRINTF(fmt, args...)
+#define DPRINTF(fmt, ...)
#endif
-#define RC4030_ERROR(fmt, args...) \
-do { fprintf(stderr, "rc4030 ERROR: %s: " fmt, __func__ , ##args); } while (0)
+#define RC4030_ERROR(fmt, ...) \
+do { fprintf(stderr, "rc4030 ERROR: %s: " fmt, __func__ , ## __VA_ARGS__); } while (0)
/********************************************************/
/* rc4030 emulation */