Revision 001faf32 hw/g364fb.c
b/hw/g364fb.c | ||
---|---|---|
26 | 26 |
//#define DEBUG_G364 |
27 | 27 |
|
28 | 28 |
#ifdef DEBUG_G364 |
29 |
#define DPRINTF(fmt, args...) \
|
|
30 |
do { printf("g364: " fmt , ##args); } while (0)
|
|
29 |
#define DPRINTF(fmt, ...) \ |
|
30 |
do { printf("g364: " fmt , ## __VA_ARGS__); } while (0)
|
|
31 | 31 |
#else |
32 |
#define DPRINTF(fmt, args...) do {} while (0)
|
|
32 |
#define DPRINTF(fmt, ...) do {} while (0) |
|
33 | 33 |
#endif |
34 |
#define BADF(fmt, args...) \
|
|
35 |
do { fprintf(stderr, "g364 ERROR: " fmt , ##args);} while (0)
|
|
34 |
#define BADF(fmt, ...) \ |
|
35 |
do { fprintf(stderr, "g364 ERROR: " fmt , ## __VA_ARGS__);} while (0)
|
|
36 | 36 |
|
37 | 37 |
typedef struct G364State { |
38 | 38 |
/* hardware */ |
Also available in: Unified diff