Fix: WARN() should print as WARN level, not ERR
[lttng-tools.git] / src / common / error.h
index ca5af86cdb56e6519164d8f7486697723a1b495a..9c9d2a7b15c0b39a5c1b64e4c4dd153d56817278 100644 (file)
@@ -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)
 
This page took 0.023056 seconds and 4 git commands to generate.