From 1d4353b26aaf3a73b5ddb39c6151ad55fc474bf3 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Wed, 18 May 2016 14:04:16 -0400 Subject: [PATCH] Fix: WARN() should print as WARN level, not ERR MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau --- src/common/error.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/error.h b/src/common/error.h index 5632b40e3..0d8e36e38 100644 --- a/src/common/error.h +++ b/src/common/error.h @@ -98,7 +98,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) -- 2.34.1