From: qwert Date: Fri, 18 Jul 2008 14:21:22 +0000 (+0000) Subject: Fix message level select macro X-Git-Tag: 2.0.0~434 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=5884dabd674d7289f9208221a22d6dfd92bba2ff;p=bertos.git Fix message level select macro git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1500 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cfg/log.h b/bertos/cfg/log.h index e322ddb3..91ff066d 100644 --- a/bertos/cfg/log.h +++ b/bertos/cfg/log.h @@ -162,15 +162,15 @@ */ #define LOG_ERR(str,...) LOG_PRINT("ERR", str, ## __VA_ARGS__) -#if (LOG_LEVEL <= LOG_LVL_INFO) +#if (LOG_LEVEL == LOG_LVL_INFO) #define LOG_WARN(str,...) LOG_PRINT("WARN", str, ## __VA_ARGS__) #define LOG_INFO(str,...) LOG_PRINT("INFO", str, ## __VA_ARGS__) -#elif (LOG_LEVEL <= LOG_LVL_WARN) +#elif (LOG_LEVEL == LOG_LVL_WARN) #define LOG_WARN(str,...) LOG_PRINT("WARN", str, ## __VA_ARGS__) #define LOG_INFO(str,...) /* Nothing */ -#else /* LOG_LEVEL <= LOG_LVL_ERR */ +#else /* LOG_LEVEL == LOG_LVL_ERR */ #define LOG_WARN(str,...) /* Nothing */ #define LOG_INFO(str,...) /* Nothing */