From: David Given Date: Tue, 18 Oct 2016 20:32:09 +0000 (+0200) Subject: '!' tracing is now always emitted; tracing goes to stderr. X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=5413d470290d2872d2ab04af6ade8e09eee89445;p=ack.git '!' tracing is now always emitted; tracing goes to stderr. --- diff --git a/mach/proto/mcg/main.c b/mach/proto/mcg/main.c index b518bff59..cf8a4435f 100644 --- a/mach/proto/mcg/main.c +++ b/mach/proto/mcg/main.c @@ -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); } }