Fix TRACEF macro. Addition to test_logging.c

This commit is contained in:
Nils O. Selåsdal
2013-01-15 19:09:26 +01:00
parent cd61803c9a
commit 6de7a854ec
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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