Make MSG() print on stdout instead of stderr
authorDavid Goulet <dgoulet@efficios.com>
Tue, 17 Jan 2012 18:37:56 +0000 (13:37 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Tue, 17 Jan 2012 18:37:56 +0000 (13:37 -0500)
Signed-off-by: David Goulet <dgoulet@efficios.com>
include/lttngerr.h

index 92a18f11d2d9f9facb9748feb56b7c4f82969bc6..b14f23218526e4843dc2131bfc1aee76fc8232ed 100644 (file)
@@ -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)) &&    \
This page took 0.026061 seconds and 4 git commands to generate.