Revision 93fcfe39 hw/ppc_prep.c

b/hw/ppc_prep.c
53 53
#define PPC_IO_DPRINTF(fmt, args...)                     \
54 54
do {                                                     \
55 55
    if (loglevel & CPU_LOG_IOPORT) {                     \
56
        fprintf(logfile, "%s: " fmt, __func__ , ##args); \
56
        qemu_log("%s: " fmt, __func__ , ##args); \
57 57
    } else {                                             \
58 58
        printf("%s : " fmt, __func__ , ##args);          \
59 59
    }                                                    \
60 60
} while (0)
61 61
#elif defined (DEBUG_PPC_IO)
62
#define PPC_IO_DPRINTF(fmt, args...)                     \
63
do {                                                     \
64
    if (loglevel & CPU_LOG_IOPORT) {                     \
65
        fprintf(logfile, "%s: " fmt, __func__ , ##args); \
66
    }                                                    \
67
} while (0)
62
#define PPC_IO_DPRINTF(fmt, args...) qemu_log_mask(CPU_LOG_IOPORT, ## __VA_ARGS__)
68 63
#else
69 64
#define PPC_IO_DPRINTF(fmt, args...) do { } while (0)
70 65
#endif

Also available in: Unified diff