From: Pierre-Marc Fournier Date: Wed, 10 Feb 2010 18:41:51 +0000 (-0500) Subject: usterr.h: add DBG_raw() macro X-Git-Tag: v0.2~23 X-Git-Url: https://git.lttng.org/?p=ust.git;a=commitdiff_plain;h=106e716d77762f0d27456e276be8c3df8e129eae usterr.h: add DBG_raw() macro --- diff --git a/include/usterr.h b/include/usterr.h index 87e4e7f..75d507a 100644 --- a/include/usterr.h +++ b/include/usterr.h @@ -50,8 +50,10 @@ #ifdef UST_DEBUG # define DBG(fmt, args...) ERRMSG(fmt, ## args) +# define DBG_raw(fmt, args...) do { sigsafe_print_err(fmt, ## args); fflush(stderr); } while(0) #else # define DBG(fmt, args...) do {} while(0) +# define DBG_raw(fmt, args...) do {} while(0) #endif #define WARN(fmt, args...) ERRMSG("Warning: " fmt, ## args) #define ERR(fmt, args...) ERRMSG("Error: " fmt, ## args)