aboutsummaryrefslogtreecommitdiffstats
path: root/src/log.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/log.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/log.h b/src/log.h
index c652c6fe6..9112658be 100644
--- a/src/log.h
+++ b/src/log.h
@@ -27,9 +27,13 @@
extern int logLevel;
-#define ERROR(x, arg...) myfprintf(stderr, x , ##arg)
+#define ERROR(x, arg...) do { \
+ myfprintf(stderr, x , ##arg); \
+ } while(0);
-#define LOG(x, arg...) myfprintf(stdout, x , ##arg)
+#define LOG(x, arg...) do { \
+ myfprintf(stdout, x , ##arg); \
+ } while(0);
#define SECURE(x, arg...) do { \
if(logLevel>=LOG_LEVEL_SECURE) myfprintf(stdout, x , ##arg); \