X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcfg%2Flog.h;h=e9e8f9f1d3a41ca1d5bcadc8b187af0877dffa94;hb=39279a8f7a3c0aa7c0dc2f56863e088568044d79;hp=9318697de97e81ad19eac2c3b7cd5f7fce23efe0;hpb=37efb5bdc0504ab6df2e8db0635c9c6f7477e23e;p=bertos.git diff --git a/bertos/cfg/log.h b/bertos/cfg/log.h index 9318697d..e9e8f9f1 100644 --- a/bertos/cfg/log.h +++ b/bertos/cfg/log.h @@ -85,7 +85,7 @@ * * \version $Id$ * \author Daniele Basile - * + * * $WIZ$ */ @@ -144,20 +144,27 @@ #if LOG_LEVEL >= LOG_LVL_ERR #define LOG_ERR(str,...) LOG_PRINT("ERR", str, ## __VA_ARGS__) + #define LOG_ERRB(x) x #else - #define LOG_ERR(str,...) /* Nothing */ + INLINE void LOG_ERR(UNUSED_ARG(const char *, fmt), ...) { /* nop */ } + #define LOG_ERRB(x) /* Nothing */ #endif #if LOG_LEVEL >= LOG_LVL_WARN #define LOG_WARN(str,...) LOG_PRINT("WARN", str, ## __VA_ARGS__) + #define LOG_WARNB(x) x #else - #define LOG_WARN(str,...) /* Nothing */ + INLINE void LOG_WARN(UNUSED_ARG(const char *, fmt), ...) { /* nop */ } + #define LOG_WARNB(x) /* Nothing */ #endif #if LOG_LEVEL >= LOG_LVL_INFO #define LOG_INFO(str,...) LOG_PRINT("INFO", str, ## __VA_ARGS__) + #define LOG_INFOB(x) x #else - #define LOG_INFO(str,...) /* Nothing */ + INLINE void LOG_INFO(UNUSED_ARG(const char *, fmt), ...) { /* nop */ } + #define LOG_INFOB(x) /* Nothing */ #endif + #endif /* CFG_LOG_H */