Revision 001faf32 hw/rc4030.c

b/hw/rc4030.c
33 33
//#define DEBUG_RC4030_DMA
34 34

  
35 35
#ifdef DEBUG_RC4030
36
#define DPRINTF(fmt, args...) \
37
do { printf("rc4030: " fmt , ##args); } while (0)
36
#define DPRINTF(fmt, ...) \
37
do { printf("rc4030: " fmt , ## __VA_ARGS__); } while (0)
38 38
static const char* irq_names[] = { "parallel", "floppy", "sound", "video",
39 39
            "network", "scsi", "keyboard", "mouse", "serial0", "serial1" };
40 40
#else
41
#define DPRINTF(fmt, args...)
41
#define DPRINTF(fmt, ...)
42 42
#endif
43 43

  
44
#define RC4030_ERROR(fmt, args...) \
45
do { fprintf(stderr, "rc4030 ERROR: %s: " fmt, __func__ , ##args); } while (0)
44
#define RC4030_ERROR(fmt, ...) \
45
do { fprintf(stderr, "rc4030 ERROR: %s: " fmt, __func__ , ## __VA_ARGS__); } while (0)
46 46

  
47 47
/********************************************************/
48 48
/* rc4030 emulation                                     */

Also available in: Unified diff