X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Ferror.h;h=3fe742c02fe97bf85b792d989e7ab3e02352c1f2;hb=743770bbd5556f893d55f402eeae98bee1128ef2;hp=c90c4ae07a1902d73eb17cc1c7ae90af652fb9a8;hpb=3e03160eaf5cf8764f111d6376e80a8c072d176d;p=lttng-tools.git diff --git a/src/common/error.h b/src/common/error.h index c90c4ae07..3fe742c02 100644 --- a/src/common/error.h +++ b/src/common/error.h @@ -151,11 +151,11 @@ static inline void __lttng_print_check_abort(enum lttng_error_level type) /* Three level of debug. Use -v, -vv or -vvv for the levels */ #define _ERRMSG(msg, type, fmt, args...) __lttng_print(type, msg \ " - %s [%ld/%ld]: " fmt " (in %s() at " __FILE__ ":" XSTR(__LINE__) ")\n", \ - log_add_time(), (long) getpid(), (long) gettid(), ## args, __func__) + log_add_time(), (long) getpid(), (long) lttng_gettid(), ## args, __func__) #define _ERRMSG_NO_LOC(msg, type, fmt, args...) __lttng_print(type, msg \ " - %s [%ld/%ld]: " fmt "\n", \ - log_add_time(), (long) getpid(), (long) gettid(), ## args) + log_add_time(), (long) getpid(), (long) lttng_gettid(), ## args) #define MSG(fmt, args...) \ __lttng_print(PRINT_MSG, fmt "\n", ## args)