From: Pierre-Marc Fournier Date: Wed, 10 Feb 2010 18:41:51 +0000 (-0500) Subject: usterr.h: add DBG_raw() macro X-Git-Tag: v1.9.1~746 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=106e716d77762f0d27456e276be8c3df8e129eae;p=lttng-ust.git usterr.h: add DBG_raw() macro --- diff --git a/include/usterr.h b/include/usterr.h index 87e4e7f2..75d507ac 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)