From 5884dabd674d7289f9208221a22d6dfd92bba2ff Mon Sep 17 00:00:00 2001 From: qwert Date: Fri, 18 Jul 2008 14:21:22 +0000 Subject: [PATCH] Fix message level select macro git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1500 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/cfg/log.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 */ -- 2.25.1