diff options
Diffstat (limited to 'cli_output.c')
-rw-r--r-- | cli_output.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cli_output.c b/cli_output.c index 57a0a05..54b09a6 100644 --- a/cli_output.c +++ b/cli_output.c @@ -74,16 +74,15 @@ int print(enum msglevel level, const char *fmt, ...) int ret = 0; FILE *output_type = stdout; - if (level == MSG_ERROR) + if (level < MSG_INFO) output_type = stderr; if (level <= verbose_screen) { va_start(ap, fmt); ret = vfprintf(output_type, fmt, ap); va_end(ap); - /* msg_*spew usually happens inside chip accessors in possibly - * time-critical operations. Don't slow them down by flushing. - */ + /* msg_*spew often happens inside chip accessors in possibly + * time-critical operations. Don't slow them down by flushing. */ if (level != MSG_SPEW) fflush(output_type); } |