Message ID | CA+KKJYDE0D8V6P_vaA9=zfxr2gza_fW4n7W2B4aP3cSq+PcU-w@mail.gmail.com |
---|---|
State | New |
Headers | show |
diff --git a/hw/mips/gt64xxx_pci.c b/hw/mips/gt64xxx_pci.c index 4811843..adb64ff 100644 --- a/hw/mips/gt64xxx_pci.c +++ b/hw/mips/gt64xxx_pci.c @@ -30,13 +30,16 @@ #include "hw/i386/pc.h" #include "exec/address-spaces.h" -//#define DEBUG -#ifdef DEBUG -#define DPRINTF(fmt, ...) fprintf(stderr, "%s: " fmt, __FUNCTION__, ##__VA_ARGS__) -#else -#define DPRINTF(fmt, ...) -#endif +#ifndef DEBUG +#define DEBUG 0 +#endif + +#define DPRINTF(fmt, ...) do { \ + if (DEBUG) { \ + fprintf(stderr, "%s: " fmt, __FUNCTION__, ##__VA_ARGS__); \ + } \ +} while (0); #define GT_REGS (0x1000 >> 2)