diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2009-05-13 17:53:17 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-05-13 17:53:17 +0000 |
commit | 001faf3269541f0231482e0fccc846f62f8930b2 (patch) | |
tree | a5a7b0143f3fd9d71e42eb03c4967f8763ec3501 /hw/dp8393x.c | |
parent | 4cfce484c5d7e514c23689f3194055b5463d6054 (diff) |
Replace gcc variadic macro extension with C99 version
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/dp8393x.c')
-rw-r--r-- | hw/dp8393x.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/hw/dp8393x.c b/hw/dp8393x.c index 6170588e99..44184097e3 100644 --- a/hw/dp8393x.c +++ b/hw/dp8393x.c @@ -34,8 +34,8 @@ #endif #ifdef DEBUG_SONIC -#define DPRINTF(fmt, args...) \ -do { printf("sonic: " fmt , ##args); } while (0) +#define DPRINTF(fmt, ...) \ +do { printf("sonic: " fmt , ## __VA_ARGS__); } while (0) static const char* reg_names[] = { "CR", "DCR", "RCR", "TCR", "IMR", "ISR", "UTDA", "CTDA", "TPS", "TFC", "TSA0", "TSA1", "TFS", "URDA", "CRDA", "CRBA0", @@ -46,11 +46,11 @@ static const char* reg_names[] = { "0x30", "0x31", "0x32", "0x33", "0x34", "0x35", "0x36", "0x37", "0x38", "0x39", "0x3a", "0x3b", "0x3c", "0x3d", "0x3e", "DCR2" }; #else -#define DPRINTF(fmt, args...) do {} while (0) +#define DPRINTF(fmt, ...) do {} while (0) #endif -#define SONIC_ERROR(fmt, args...) \ -do { printf("sonic ERROR: %s: " fmt, __func__ , ##args); } while (0) +#define SONIC_ERROR(fmt, ...) \ +do { printf("sonic ERROR: %s: " fmt, __func__ , ## __VA_ARGS__); } while (0) #define SONIC_CR 0x00 #define SONIC_DCR 0x01 |