aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-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); \