X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=bertos%2Fcfg%2Flog.h;h=e9e8f9f1d3a41ca1d5bcadc8b187af0877dffa94;hb=32f026f4fd3ec6cc24e6b8d547c8e037126af721;hp=ec3882bd43b53067afb96dc7e1760cafa3cd10c2;hpb=d9d931610bca1df6ceb9227eacc9ff2c7f89b77a;p=bertos.git diff --git a/bertos/cfg/log.h b/bertos/cfg/log.h index ec3882bd..e9e8f9f1 100644 --- a/bertos/cfg/log.h +++ b/bertos/cfg/log.h @@ -146,7 +146,7 @@ #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 @@ -154,7 +154,7 @@ #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 @@ -162,7 +162,7 @@ #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