X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Ferror.h;h=3fe742c02fe97bf85b792d989e7ab3e02352c1f2;hp=c90c4ae07a1902d73eb17cc1c7ae90af652fb9a8;hb=557ac9b9cfa00306a0330694846db95fc5cd3b72;hpb=6cc58d14b6ac5804f1a236dec2be50e16e7fb3b4 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)