X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=include%2Flttngerr.h;h=b14f23218526e4843dc2131bfc1aee76fc8232ed;hp=c2f4d519886aff042e22b828fb0794f39b4e9b85;hb=1fea938d0d3adc783bb49d7ff3d0686ba87b0520;hpb=75dea6549bb911ed4e22bc9b382f02c4b67a97be diff --git a/include/lttngerr.h b/include/lttngerr.h index c2f4d5198..b14f23218 100644 --- a/include/lttngerr.h +++ b/include/lttngerr.h @@ -43,13 +43,14 @@ 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)) && \ opt_verbose == 3)) { \ - fprintf(stdout, fmt, ## args); \ + fprintf(stderr, fmt, ## args); \ } else if (type & (PRINT_ERR | PRINT_WARN | PRINT_BUG)) { \ fprintf(stderr, fmt, ## args); \ } \