Fix TRACEF macro. Addition to test_logging.c
This commit is contained in:
@@ -10,9 +10,9 @@
|
||||
} while (0)
|
||||
|
||||
#ifdef DEBUG
|
||||
#define TRACEF(fmt, args...)
|
||||
#define TRACEF(fmt, ...)\
|
||||
do { \
|
||||
fprintf(stdout, "%s:%d (%s)\t" fmt, __FILE__, __LINE__, __FUNCTION__, ##args);\
|
||||
fprintf(stdout, "%s:%d (%s)\t" fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);\
|
||||
fflush(stdout);\
|
||||
} while(0)
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user