aboutsummaryrefslogtreecommitdiff
path: root/src/log.h
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-02-25 17:53:48 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-02-25 17:53:48 +0000
commit46c66a2a3ee71b149cb9bd31349744a5bf532424 (patch)
tree980bce14fc1d9df0c68c68d305e40b4119fe78d4 /src/log.h
parent1ff12306802f483445fc37083409f03ef5ce1873 (diff)
a few cleanups
git-svn-id: https://svn.musicpd.org/mpd/trunk@53 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/log.h')
-rw-r--r--src/log.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/log.h b/src/log.h
index c652c6fe..9112658b 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); \