From: David Goulet Date: Fri, 23 May 2014 18:36:33 +0000 (-0400) Subject: Don't print time and pid/tid in ERR() and WARN() X-Git-Tag: v2.5.0-rc1~18 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=c66f2a27dd7d3394775f4a9a942c899c973c3b42;p=lttng-tools.git Don't print time and pid/tid in ERR() and WARN() The lttng command line uses these two macros to print information to the user. With the time and pid/tid, it is not really user friendly and useful for the user. Signed-off-by: David Goulet --- diff --git a/src/common/error.h b/src/common/error.h index 1b000ab7a..684ff5e5f 100644 --- a/src/common/error.h +++ b/src/common/error.h @@ -90,9 +90,9 @@ extern int lttng_opt_verbose; #define _MSG(fmt, args...) \ __lttng_print(PRINT_MSG, fmt, ## args) #define ERR(fmt, args...) \ - _ERRMSG("ERROR", PRINT_ERR, fmt, ## args) + __lttng_print(PRINT_ERR, "Error: " fmt "\n", ## args) #define WARN(fmt, args...) \ - _ERRMSG("WARN", PRINT_WARN, fmt, ## args) + __lttng_print(PRINT_ERR, "Warning: " fmt "\n", ## args) #define BUG(fmt, args...) _ERRMSG("BUG", PRINT_BUG, fmt, ## args)