From 26ff26240b5ca060c6a7265fbf79ee9b8d6557e0 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@38d2e660-2303-0410-9eaa-f027e97ec537> Date: Thu, 20 Aug 2009 14:33:21 +0000 Subject: [PATCH] Add logging for block of code. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2774 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/cfg/log.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bertos/cfg/log.h b/bertos/cfg/log.h index 9318697d..ec3882bd 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 */ + #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 */ -- 2.25.1