mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-11 16:00:50 -07:00
Replace gcc variadic macro extension with C99 version (missed one)
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
001faf3269
commit
6c7f4b47f7
1 changed files with 3 additions and 3 deletions
|
|
@ -41,12 +41,12 @@ enum {
|
||||||
#define DBGBIT(x) (1<<DEBUG_##x)
|
#define DBGBIT(x) (1<<DEBUG_##x)
|
||||||
static int debugflags = DBGBIT(TXERR) | DBGBIT(GENERAL);
|
static int debugflags = DBGBIT(TXERR) | DBGBIT(GENERAL);
|
||||||
|
|
||||||
#define DBGOUT(what, fmt, params...) do { \
|
#define DBGOUT(what, fmt, ...) do { \
|
||||||
if (debugflags & DBGBIT(what)) \
|
if (debugflags & DBGBIT(what)) \
|
||||||
fprintf(stderr, "e1000: " fmt, ##params); \
|
fprintf(stderr, "e1000: " fmt, ## __VA_ARGS__); \
|
||||||
} while (0)
|
} while (0)
|
||||||
#else
|
#else
|
||||||
#define DBGOUT(what, fmt, params...) do {} while (0)
|
#define DBGOUT(what, fmt, ...) do {} while (0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define IOPORT_SIZE 0x40
|
#define IOPORT_SIZE 0x40
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue