From: Pierre-Marc Fournier Date: Tue, 2 Feb 2010 01:25:43 +0000 (-0500) Subject: usterr.h: print function name X-Git-Tag: v0.2~38 X-Git-Url: https://git.lttng.org/?a=commitdiff_plain;h=38f015df280d9a9842d84af86cba0b14ff4e2fbd;hp=17183f1c5e2458774293b403931c5cb167da4edf;p=ust.git usterr.h: print function name --- diff --git a/include/usterr.h b/include/usterr.h index 12a4214..87e4e7f 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)