'!' tracing is now always emitted; tracing goes to stderr.
authorDavid Given <dg@cowlark.com>
Tue, 18 Oct 2016 20:32:09 +0000 (22:32 +0200)
committerDavid Given <dg@cowlark.com>
Tue, 18 Oct 2016 20:32:09 +0000 (22:32 +0200)
mach/proto/mcg/main.c

index b518bff..cf8a443 100644 (file)
@@ -10,6 +10,8 @@ FILE* cfg_dot_file = NULL;
 
 bool tracing(char k)
 {
+    if (k == '!')
+        return true;
     if (!tracechars)
         return false;
 
@@ -23,7 +25,7 @@ void tracef(char k, const char* fmt, ...)
     if (tracing(k))
     {
         va_start(ap, fmt);
-        vprintf(fmt, ap);
+        vfprintf(stderr, fmt, ap);
         va_end(ap);
     }
 }