Evalutate always log arguments.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 19 Mar 2010 17:44:37 +0000 (17:44 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 19 Mar 2010 17:44:37 +0000 (17:44 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3251 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/cfg/log.h

index ec3882bd43b53067afb96dc7e1760cafa3cd10c2..e9e8f9f1d3a41ca1d5bcadc8b187af0877dffa94 100644 (file)
        #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
 
        #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
 
        #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