OSDN Git Service

Replace gcc variadic macro extension with C99 version (missed one)
authorBlue Swirl <blauwirbel@gmail.com>
Wed, 13 May 2009 18:09:29 +0000 (18:09 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Wed, 13 May 2009 18:09:29 +0000 (18:09 +0000)
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/e1000.c

index 940e893..171ebe0 100644 (file)
@@ -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