summaryrefslogtreecommitdiff
path: root/cli_output.c
diff options
context:
space:
mode:
authorstefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2013-01-04 22:54:07 +0000
committerstefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2013-01-04 22:54:07 +0000
commit4f76e2f91d69dae46c42155d65b80e1d0f2bbdfc (patch)
tree7ac561c734007cfe88577cdad895f87524e3184f /cli_output.c
parentfc2c3133fbb24b2e770c6f3bea0a850272a70bbe (diff)
downloadflashrom-4f76e2f91d69dae46c42155d65b80e1d0f2bbdfc.tar.gz
Introduce msg_*warn.
Also, unify all outputs of "Warning:" and "Error:" to use normal capitalization instead of mixing it with all capitals. Signed-off-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> Acked-by: Idwer Vollering <vidwer@gmail.com> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1643 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'cli_output.c')
-rw-r--r--cli_output.c7
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);
}