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.