Add logging for block of code.
author(no author) <(no author)@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 20 Aug 2009 14:33:21 +0000 (14:33 +0000)
committer(no author) <(no author)@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 20 Aug 2009 14:33:21 +0000 (14:33 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2774 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/cfg/log.h

index 9318697de97e81ad19eac2c3b7cd5f7fce23efe0..ec3882bd43b53067afb96dc7e1760cafa3cd10c2 100644 (file)
@@ -85,7 +85,7 @@
  *
  * \version $Id$
  * \author Daniele Basile <asterix@develer.com>
- * 
+ *
  * $WIZ$
  */
 
 
 #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 */
+       #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 */
+       #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 */
+       #define LOG_INFOB(x)            /* Nothing */
 #endif
 
+
 #endif /* CFG_LOG_H */