From: Pierre-Marc Fournier Date: Mon, 1 Feb 2010 20:40:18 +0000 (-0500) Subject: change DEBUG macro to UST_DEBUG, now it must be -D's at ./configure to activate it X-Git-Tag: v0.2~40 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=025490141683540acf97e05086aa8b2b1ee4797b;p=ust.git change DEBUG macro to UST_DEBUG, now it must be -D's at ./configure to activate it --- diff --git a/include/usterr.h b/include/usterr.h index a32b0b6..12a4214 100644 --- a/include/usterr.h +++ b/include/usterr.h @@ -48,8 +48,7 @@ #define ERRMSG(fmt, args...) do { sigsafe_print_err(UST_STR_COMPONENT "[%ld/%ld]: " fmt " (" __FILE__ ":" XSTR(__LINE__) ")\n", (long) getpid(), (long) syscall(SYS_gettid), ## args); fflush(stderr); } while(0) -/*#define DEBUG*/ -#ifdef DEBUG +#ifdef UST_DEBUG # define DBG(fmt, args...) ERRMSG(fmt, ## args) #else # define DBG(fmt, args...) do {} while(0)