[lttng-dev] [PATCH lttng-tools 07/10] Fix: WARN() should print as WARN level, not ERR
Jérémie Galarneau
jeremie.galarneau at efficios.com
Thu May 19 04:14:04 UTC 2016
Good catch (again)! Merged.
Thanks,
Jérémie
On Wed, May 18, 2016 at 2:04 PM, Mathieu Desnoyers
<mathieu.desnoyers at efficios.com> wrote:
> Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers at efficios.com>
> ---
> 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 ca5af86..9c9d2a7 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)
>
> --
> 2.1.4
>
--
Jérémie Galarneau
EfficiOS Inc.
http://www.efficios.com
More information about the lttng-dev
mailing list