]> git.itanic.dy.fi Git - glucose/blobdiff - utils.h
Write trace messages to stderr so only data goes to stdout (allows for shell redirect...
[glucose] / utils.h
diff --git a/utils.h b/utils.h
index aee10e557ea9bcc212c94072dc37c9cdf3444288..370cca4d1f09392cbb03471e092972249ceb579f 100644 (file)
--- a/utils.h
+++ b/utils.h
@@ -33,8 +33,8 @@ extern int trace_level;
 
 #define trace(level, arg...)                   \
        do {                                    \
-               if (level <= trace_level)       \
-                       printf(arg);            \
+               if (level <= trace_level)       \
+                       fprintf(stderr, arg);   \
        } while (0)
 
 int datalen(const unsigned char *data);