X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcfg%2Flog.h;h=91ff066d834895ce8aa5671fee1671ad3369c690;hb=4cc44c9888a0336b9d01121ec0b7ad95f4a76195;hp=e322ddb396fba621eb0ac1587ee10e6e0b544ff5;hpb=8fcf378dcbec1cd76e7bcb78710416d5932415d9;p=bertos.git 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 */