From: Jonathan Rajotte Date: Mon, 11 Jan 2016 22:32:14 +0000 (-0500) Subject: Fix: do not print error and bug messages when quiet (-q) is present X-Git-Tag: v2.7.2~24 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=2a1637bf0ba1118c1a239121dc9f754d166eb09f;p=lttng-tools.git Fix: do not print error and bug messages when quiet (-q) is present Conform to the lttng man page fixes #988 Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/error.h b/src/common/error.h index 00519d840..5fff3be1a 100644 --- a/src/common/error.h +++ b/src/common/error.h @@ -80,9 +80,8 @@ extern int lttng_opt_mi; ((type & (PRINT_DBG | PRINT_DBG2 | PRINT_DBG3)) && \ lttng_opt_verbose == 3))) { \ fprintf(stderr, fmt, ## args); \ - } else if (lttng_opt_quiet == 0 && (type & (PRINT_WARN))) { \ - fprintf(stderr, fmt, ## args); \ - } else if (type & (PRINT_ERR | PRINT_BUG)) { \ + } else if (lttng_opt_quiet == 0 && \ + (type & (PRINT_WARN | PRINT_ERR | PRINT_BUG))) { \ fprintf(stderr, fmt, ## args); \ } \ } while (0);