aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Schömer <daniel.schoemer@gmx.net>2008-11-09 22:27:58 +0100
committerMax Kellermann <max@duempel.org>2008-11-09 22:27:58 +0100
commit1256f908253c25417c82f76ce8cb154049db7948 (patch)
tree3a40e0a44b8b36b1e657c4a0b4459f1074e2ac29
parentc9c7dc6e0069e7e7392701e97043d19f4e21016c (diff)
downloadmpd-1256f908253c25417c82f76ce8cb154049db7948.tar.gz
mpd-1256f908253c25417c82f76ce8cb154049db7948.tar.xz
mpd-1256f908253c25417c82f76ce8cb154049db7948.zip
log: properly check log_threshold
-rw-r--r--src/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/log.c b/src/log.c
index db6cb7e3f..946f4164c 100644
--- a/src/log.c
+++ b/src/log.c
@@ -159,7 +159,7 @@ void setup_log_output(bool use_stdout)
#define log_func(func,level) \
mpd_printf void func(const char *fmt, ...) \
{ \
- if ((int)log_threshold <= level) { \
+ if (level <= (int)log_threshold) { \
va_list args; \
va_start(args, fmt); \
g_logv(NULL, level, fmt, args); \