From: Pierre-Marc Fournier Date: Tue, 2 Feb 2010 01:25:43 +0000 (-0500) Subject: usterr.h: print function name X-Git-Tag: v1.9.1~761 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=38f015df280d9a9842d84af86cba0b14ff4e2fbd;p=lttng-ust.git usterr.h: print function name --- diff --git a/include/usterr.h b/include/usterr.h index 12a42140..87e4e7f2 100644 --- a/include/usterr.h +++ b/include/usterr.h @@ -46,7 +46,7 @@ #define UST_STR_COMPONENT XSTR(UST_COMPONENT) -#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 ERRMSG(fmt, args...) do { sigsafe_print_err(UST_STR_COMPONENT "[%ld/%ld]: " fmt " (in %s() at " __FILE__ ":" XSTR(__LINE__) ")\n", (long) getpid(), (long) syscall(SYS_gettid), ## args, __func__); fflush(stderr); } while(0) #ifdef UST_DEBUG # define DBG(fmt, args...) ERRMSG(fmt, ## args)