提交 6c7f4b47 编写于 作者: B Blue Swirl

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

Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
上级 001faf32
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册