Revision 001faf32 hw/stellaris_enet.c

b/hw/stellaris_enet.c
14 14
//#define DEBUG_STELLARIS_ENET 1
15 15

  
16 16
#ifdef DEBUG_STELLARIS_ENET
17
#define DPRINTF(fmt, args...) \
18
do { printf("stellaris_enet: " fmt , ##args); } while (0)
19
#define BADF(fmt, args...) \
20
do { fprintf(stderr, "stellaris_enet: error: " fmt , ##args); exit(1);} while (0)
17
#define DPRINTF(fmt, ...) \
18
do { printf("stellaris_enet: " fmt , ## __VA_ARGS__); } while (0)
19
#define BADF(fmt, ...) \
20
do { fprintf(stderr, "stellaris_enet: error: " fmt , ## __VA_ARGS__); exit(1);} while (0)
21 21
#else
22
#define DPRINTF(fmt, args...) do {} while(0)
23
#define BADF(fmt, args...) \
24
do { fprintf(stderr, "stellaris_enet: error: " fmt , ##args);} while (0)
22
#define DPRINTF(fmt, ...) do {} while(0)
23
#define BADF(fmt, ...) \
24
do { fprintf(stderr, "stellaris_enet: error: " fmt , ## __VA_ARGS__);} while (0)
25 25
#endif
26 26

  
27 27
#define SE_INT_RX       0x01

Also available in: Unified diff