From 1fea938d0d3adc783bb49d7ff3d0686ba87b0520 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Tue, 17 Jan 2012 13:37:56 -0500 Subject: [PATCH 1/1] Make MSG() print on stdout instead of stderr Signed-off-by: David Goulet --- include/lttngerr.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/lttngerr.h b/include/lttngerr.h index 92a18f11d..b14f23218 100644 --- a/include/lttngerr.h +++ b/include/lttngerr.h @@ -43,8 +43,9 @@ extern int opt_verbose; #define __lttng_print(type, fmt, args...) \ do { \ if (opt_quiet == 0) { \ - if (type == PRINT_MSG || \ - ((type & PRINT_DBG) && opt_verbose == 1) || \ + if (type == PRINT_MSG) { \ + fprintf(stdout, fmt, ## args); \ + } else if (((type & PRINT_DBG) && opt_verbose == 1) || \ ((type & (PRINT_DBG | PRINT_DBG2)) && \ opt_verbose == 2) || \ ((type & (PRINT_DBG | PRINT_DBG2 | PRINT_DBG3)) && \ -- 2.34.1