X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcfg%2Flog.h;h=a09de318d26f94483b70d597126bdb826d2e4d5e;hb=2b74d29e47161c81ee4f055072a63a54310249c8;hp=ec3882bd43b53067afb96dc7e1760cafa3cd10c2;hpb=26ff26240b5ca060c6a7265fbf79ee9b8d6557e0;p=bertos.git diff --git a/bertos/cfg/log.h b/bertos/cfg/log.h index ec3882bd..a09de318 100644 --- a/bertos/cfg/log.h +++ b/bertos/cfg/log.h @@ -83,7 +83,6 @@ * LOG_LEVEL and LOG_VERBOSE macros must be defined before to include log module, * otherwise the log module use a default settings. * - * \version $Id$ * \author Daniele Basile * * $WIZ$ @@ -146,7 +145,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 +153,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 +161,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