Commit 6a077f86 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Only flush stderr when something was printed.

Pointless, but clearer to me.
parent 1fb48a9e
...@@ -172,10 +172,11 @@ do_debugf(int level, const char *format, ...) ...@@ -172,10 +172,11 @@ do_debugf(int level, const char *format, ...)
{ {
va_list args; va_list args;
va_start(args, format); va_start(args, format);
if(debug >= level) if(debug >= level) {
vfprintf(stderr, format, args); vfprintf(stderr, format, args);
fflush(stderr);
}
va_end(args); va_end(args);
fflush(stderr);
} }
int int
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment