Skip to content

Commit

Permalink
Replace gcc variadic macro extension with C99 version (missed one)
Browse files Browse the repository at this point in the history
Signed-off-by: Blue Swirl <[email protected]>
  • Loading branch information
blueswirl committed May 13, 2009
1 parent 001faf3 commit 6c7f4b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hw/e1000.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6c7f4b4

Please sign in to comment.