Output warnings and errors to stderr
[babeltrace.git] / include / babeltrace / babeltrace-internal.h
index 1c12a8be23f2ec7cb6687a3b539a90b27eb09573..39dc097e73f3e824bd4c6ad59cc5e0ea3d84e324 100644 (file)
@@ -6,16 +6,16 @@
 
 extern int babeltrace_verbose, babeltrace_debug;
 
-#define printf_verbose(fmt, args...)                           \
-       do {                                                    \
-               if (babeltrace_verbose)                         \
-                       printf("[verbose] " fmt, ## args);      \
+#define printf_verbose(fmt, args...)                                   \
+       do {                                                            \
+               if (babeltrace_verbose)                                 \
+                       fprintf(stdout, "[verbose] " fmt, ## args);     \
        } while (0)
 
-#define printf_debug(fmt, args...)                             \
-       do {                                                    \
-               if (babeltrace_debug)                           \
-                       printf("[debug] " fmt, ## args);        \
+#define printf_debug(fmt, args...)                                     \
+       do {                                                            \
+               if (babeltrace_debug)                                   \
+                       fprintf(stdout, "[debug] " fmt, ## args);       \
        } while (0)
 
 #define likely(x)      __builtin_expect(!!(x), 1)
This page took 0.023598 seconds and 4 git commands to generate.