summaryrefslogtreecommitdiff
path: root/src/log.h
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-02-25 19:13:10 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-02-25 19:13:10 +0000
commite1c839cd5679f9b60f6b5e2bfd3a341b64463456 (patch)
treef7876c1600e29d38f3a574333e482e4651a3d382 /src/log.h
parent483d8873bd851abb0db066323e0512e1a22dc840 (diff)
cleanup logging, need to be careful with SECURE and DEBUG
git-svn-id: https://svn.musicpd.org/mpd/trunk@58 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/log.h')
-rw-r--r--src/log.h18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/log.h b/src/log.h
index 9112658be..9b4ceaeeb 100644
--- a/src/log.h
+++ b/src/log.h
@@ -27,22 +27,16 @@
extern int logLevel;
-#define ERROR(x, arg...) do { \
- myfprintf(stderr, x , ##arg); \
- } while(0);
+#define ERROR(x, arg...) myfprintf(stderr, x , ##arg)
-#define LOG(x, arg...) do { \
- myfprintf(stdout, x , ##arg); \
- } while(0);
+#define LOG(x, arg...) myfprintf(stdout, x , ##arg)
-#define SECURE(x, arg...) do { \
- if(logLevel>=LOG_LEVEL_SECURE) myfprintf(stdout, x , ##arg); \
- } while(0);
+#define SECURE(x, arg...) if(logLevel>=LOG_LEVEL_SECURE) \
+ myfprintf(stdout, x , ##arg)
-#define DEBUG(x, arg...) do { \
- if(logLevel>=LOG_LEVEL_DEBUG) myfprintf(stdout, x , ##arg); \
- } while(0);
+#define DEBUG(x, arg...) if(logLevel>=LOG_LEVEL_DEBUG) \
+ myfprintf(stdout, x , ##arg)
void initLog();