'!' tracing is now always emitted; tracing goes to stderr.
This commit is contained in:
parent
3520704ea8
commit
5413d47029
1 changed files with 3 additions and 1 deletions
|
@ -10,6 +10,8 @@ FILE* cfg_dot_file = NULL;
|
||||||
|
|
||||||
bool tracing(char k)
|
bool tracing(char k)
|
||||||
{
|
{
|
||||||
|
if (k == '!')
|
||||||
|
return true;
|
||||||
if (!tracechars)
|
if (!tracechars)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
@ -23,7 +25,7 @@ void tracef(char k, const char* fmt, ...)
|
||||||
if (tracing(k))
|
if (tracing(k))
|
||||||
{
|
{
|
||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
vprintf(fmt, ap);
|
vfprintf(stderr, fmt, ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue