From ec63c1e88f71bc94cf13110c8830ff745ea1add9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20O=2E=20Sel=C3=A5sdal?= Date: Sat, 30 Nov 2013 04:39:59 +0100 Subject: [PATCH] Guard the UC_DEBUGF/UC_DEBUGFR with do{}while(0) --- include/ucore/logging.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/ucore/logging.h b/include/ucore/logging.h index bbaebe0..3da4baa 100644 --- a/include/ucore/logging.h +++ b/include/ucore/logging.h @@ -280,8 +280,8 @@ void uc_logf(int log_level, int module, int raw, # define UC_DEBUGFR(mod, fmt, ...)\ uc_logf(UC_LL_DEBUG, mod,1 , UC_SRC_LOCATION, fmt, ## __VA_ARGS__) #else -# define UC_DEBUGF(mod, fmt, ...) -# define UC_DEBUGFR(mod, fmt, ...) +# define UC_DEBUGF(mod, fmt, ...) do {} while (0) +# define UC_DEBUGFR(mod, fmt, ...) do {} while (0) #endif /** Main macro that should be used for logging.