X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=include%2Fusterr.h;h=87e4e7f2331dce57c3208d7be4b19ca0cb740cc0;hb=38f015df280d9a9842d84af86cba0b14ff4e2fbd;hp=12a4214028eb45a1f9d5b8a1c27d8bfb752d4e5e;hpb=17183f1c5e2458774293b403931c5cb167da4edf;p=ust.git 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)