summaryrefslogtreecommitdiffstats
path: root/cli_output.c
diff options
context:
space:
mode:
authorStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2013-01-04 22:54:07 +0000
committerStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2013-01-04 22:54:07 +0000
commitc6fa32d2b5c08d2fcc92fee2974a3fc02a3ca1f7 (patch)
tree7ac561c734007cfe88577cdad895f87524e3184f /cli_output.c
parent5561955b1158e8bd29299735abef1e26a5a9cdbc (diff)
downloadast2050-flashrom-c6fa32d2b5c08d2fcc92fee2974a3fc02a3ca1f7.zip
ast2050-flashrom-c6fa32d2b5c08d2fcc92fee2974a3fc02a3ca1f7.tar.gz
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 <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Idwer Vollering <vidwer@gmail.com>
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);
}
OpenPOWER on IntegriCloud