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