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 41 #define DBGBIT(x) (1<<DEBUG_##x)
42 42 static int debugflags = DBGBIT(TXERR) | DBGBIT(GENERAL);
43 43  
44   -#define DBGOUT(what, fmt, params...) do { \
  44 +#define DBGOUT(what, fmt, ...) do { \
45 45 if (debugflags & DBGBIT(what)) \
46   - fprintf(stderr, "e1000: " fmt, ##params); \
  46 + fprintf(stderr, "e1000: " fmt, ## __VA_ARGS__); \
47 47 } while (0)
48 48 #else
49   -#define DBGOUT(what, fmt, params...) do {} while (0)
  49 +#define DBGOUT(what, fmt, ...) do {} while (0)
50 50 #endif
51 51  
52 52 #define IOPORT_SIZE 0x40
... ...