summaryrefslogtreecommitdiff
path: root/hw/e1000.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-05-13 18:09:29 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-05-13 18:09:29 +0000
commitd2e19519768156336d4785f3432a6ded486ea8e1 (patch)
treed640916fe737f77a0da6a7805f895929dce431f6 /hw/e1000.c
parent9b347269f2c841ac9a624cc24d8c7a137bc58206 (diff)
downloadqemu-d2e19519768156336d4785f3432a6ded486ea8e1.tar.gz
qemu-d2e19519768156336d4785f3432a6ded486ea8e1.tar.bz2
qemu-d2e19519768156336d4785f3432a6ded486ea8e1.zip
Replace gcc variadic macro extension with C99 version (missed one)
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/e1000.c')
-rw-r--r--hw/e1000.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/e1000.c b/hw/e1000.c
index 940e893ba3..171ebe09b8 100644
--- a/hw/e1000.c
+++ b/hw/e1000.c
@@ -41,12 +41,12 @@ enum {
#define DBGBIT(x) (1<<DEBUG_##x)
static int debugflags = DBGBIT(TXERR) | DBGBIT(GENERAL);
-#define DBGOUT(what, fmt, params...) do { \
+#define DBGOUT(what, fmt, ...) do { \
if (debugflags & DBGBIT(what)) \
- fprintf(stderr, "e1000: " fmt, ##params); \
+ fprintf(stderr, "e1000: " fmt, ## __VA_ARGS__); \
} while (0)
#else
-#define DBGOUT(what, fmt, params...) do {} while (0)
+#define DBGOUT(what, fmt, ...) do {} while (0)
#endif
#define IOPORT_SIZE 0x40