From: Mathieu Desnoyers Date: Wed, 18 May 2016 18:04:16 +0000 (-0400) Subject: Fix: WARN() should print as WARN level, not ERR X-Git-Tag: v2.9.0-rc1~172 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=cb1917a99d7ce37aff299368808e79434b02a687;ds=sidebyside Fix: WARN() should print as WARN level, not ERR Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/error.h b/src/common/error.h index ca5af86cd..9c9d2a7b1 100644 --- a/src/common/error.h +++ b/src/common/error.h @@ -103,7 +103,7 @@ extern int lttng_opt_mi; #define ERR(fmt, args...) \ __lttng_print(PRINT_ERR, "Error: " fmt "\n", ## args) #define WARN(fmt, args...) \ - __lttng_print(PRINT_ERR, "Warning: " fmt "\n", ## args) + __lttng_print(PRINT_WARN, "Warning: " fmt "\n", ## args) #define BUG(fmt, args...) _ERRMSG("BUG", PRINT_BUG, fmt, ## args)