From: Miroslav Lichvar Date: Mon, 12 Oct 2015 11:16:04 +0000 (+0200) Subject: logging: don't ignore message severity with debug support X-Git-Tag: 2.2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e6dead680fa7d437731835c6fe069e830ed84b1;p=thirdparty%2Fchrony.git logging: don't ignore message severity with debug support The severity was fixed for all messages to LOGS_DEBUG. This was broken in commit 7b2430fc3c44bc7f5fc3b6ca2b478cdea77ef841. --- diff --git a/logging.h b/logging.h index ba28d97f..b480c420 100644 --- a/logging.h +++ b/logging.h @@ -47,7 +47,7 @@ extern int log_debug_enabled; #if DEBUG > 0 #define LOG_MESSAGE(severity, facility, ...) \ - LOG_Message(LOGS_DEBUG, facility, __LINE__, __FILE__, FUNCTION_NAME, __VA_ARGS__); + LOG_Message(severity, facility, __LINE__, __FILE__, FUNCTION_NAME, __VA_ARGS__); #else #define LOG_MESSAGE(severity, facility, ...) \ LOG_Message(severity, __VA_ARGS__);