Commit 6c7f4b47f778258493744a690bfc8dbbb7d21f69

Authored by Blue Swirl
1 parent 001faf32

Replace gcc variadic macro extension with C99 version (missed one)

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Showing 1 changed file with 3 additions and 3 deletions
hw/e1000.c
@@ -41,12 +41,12 @@ enum { @@ -41,12 +41,12 @@ enum {
41 #define DBGBIT(x) (1<<DEBUG_##x) 41 #define DBGBIT(x) (1<<DEBUG_##x)
42 static int debugflags = DBGBIT(TXERR) | DBGBIT(GENERAL); 42 static int debugflags = DBGBIT(TXERR) | DBGBIT(GENERAL);
43 43
44 -#define DBGOUT(what, fmt, params...) do { \ 44 +#define DBGOUT(what, fmt, ...) do { \
45 if (debugflags & DBGBIT(what)) \ 45 if (debugflags & DBGBIT(what)) \
46 - fprintf(stderr, "e1000: " fmt, ##params); \ 46 + fprintf(stderr, "e1000: " fmt, ## __VA_ARGS__); \
47 } while (0) 47 } while (0)
48 #else 48 #else
49 -#define DBGOUT(what, fmt, params...) do {} while (0) 49 +#define DBGOUT(what, fmt, ...) do {} while (0)
50 #endif 50 #endif
51 51
52 #define IOPORT_SIZE 0x40 52 #define IOPORT_SIZE 0x40