Revision 001faf32 hw/ppc_prep.c

b/hw/ppc_prep.c
50 50
#endif
51 51

  
52 52
#if defined (HARD_DEBUG_PPC_IO)
53
#define PPC_IO_DPRINTF(fmt, args...)                     \
53
#define PPC_IO_DPRINTF(fmt, ...)                         \
54 54
do {                                                     \
55 55
    if (qemu_loglevel_mask(CPU_LOG_IOPORT)) {            \
56
        qemu_log("%s: " fmt, __func__ , ##args); \
56
        qemu_log("%s: " fmt, __func__ , ## __VA_ARGS__); \
57 57
    } else {                                             \
58
        printf("%s : " fmt, __func__ , ##args);          \
58
        printf("%s : " fmt, __func__ , ## __VA_ARGS__);  \
59 59
    }                                                    \
60 60
} while (0)
61 61
#elif defined (DEBUG_PPC_IO)
62
#define PPC_IO_DPRINTF(fmt, args...) qemu_log_mask(CPU_LOG_IOPORT, ## __VA_ARGS__)
62
#define PPC_IO_DPRINTF(fmt, ...) qemu_log_mask(CPU_LOG_IOPORT, ## __VA_ARGS__)
63 63
#else
64
#define PPC_IO_DPRINTF(fmt, args...) do { } while (0)
64
#define PPC_IO_DPRINTF(fmt, ...) do { } while (0)
65 65
#endif
66 66

  
67 67
/* Constants for devices init */

Also available in: Unified diff