From c6fa32d2b5c08d2fcc92fee2974a3fc02a3ca1f7 Mon Sep 17 00:00:00 2001 From: Stefan Tauner Date: Fri, 4 Jan 2013 22:54:07 +0000 Subject: Introduce msg_*warn Also, unify all outputs of "Warning:" and "Error:" to use normal capitalization instead of mixing it with all capitals. Corresponding to flashrom svn r1643. Signed-off-by: Stefan Tauner Acked-by: Idwer Vollering --- cli_output.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'cli_output.c') 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); } -- cgit v1.1