diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2009-05-13 18:09:29 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-05-13 18:09:29 +0000 |
commit | 6c7f4b47f778258493744a690bfc8dbbb7d21f69 (patch) | |
tree | d640916fe737f77a0da6a7805f895929dce431f6 /hw | |
parent | 001faf3269541f0231482e0fccc846f62f8930b2 (diff) | |
download | qemu-6c7f4b47f778258493744a690bfc8dbbb7d21f69.zip qemu-6c7f4b47f778258493744a690bfc8dbbb7d21f69.tar.gz qemu-6c7f4b47f778258493744a690bfc8dbbb7d21f69.tar.bz2 |
Replace gcc variadic macro extension with C99 version (missed one)
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/e1000.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |