From eace556aa8844e86c525fff9bad3d4cf09bba31b Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Sun, 2 Aug 2020 17:46:46 +0200 Subject: log: Fix inverted loglevel check --- common/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/log.c') diff --git a/common/log.c b/common/log.c index 1474dcc..fcedf43 100644 --- a/common/log.c +++ b/common/log.c @@ -49,7 +49,7 @@ void libseat_log_init(enum libseat_log_level level) { void _libseat_logf(enum libseat_log_level level, const char *fmt, ...) { int stored_errno = errno; va_list args; - if (level < current_log_level) { + if (level > current_log_level) { return; } -- cgit v1.2.3