Fix message level select macro
authorqwert <qwert@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 18 Jul 2008 14:21:22 +0000 (14:21 +0000)
committerqwert <qwert@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 18 Jul 2008 14:21:22 +0000 (14:21 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1500 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/cfg/log.h

index e322ddb396fba621eb0ac1587ee10e6e0b544ff5..91ff066d834895ce8aa5671fee1671ad3369c690 100644 (file)
  */
 #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 */