1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-02 06:23:18 +02:00

Various coding style and cosmetic changes

- Fix coding-style, whitespace, and indentation in a few places.

 - Consistently use the same spelling ("Super I/O") everywhere.

Corresponding to flashrom svn r933.

 - Make some flashrom stdout output look a bit nicer.
 
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
This commit is contained in:
Uwe Hermann
2010-03-13 17:28:29 +00:00
parent 645c6df21a
commit 439597032e
8 changed files with 79 additions and 82 deletions

View File

@ -27,25 +27,25 @@ int print(int type, const char *fmt, ...)
va_list ap;
int ret;
FILE *output_type;
switch (type)
{
switch (type) {
case MSG_ERROR:
output_type = stderr;
break;
case MSG_BARF:
if (verbose < 2) return 0;
if (verbose < 2)
return 0;
case MSG_DEBUG:
if (verbose < 1) return 0;
if (verbose < 1)
return 0;
case MSG_INFO:
default:
output_type = stdout;
break;
}
va_start(ap, fmt);
ret = vfprintf(output_type, fmt, ap);
va_end(ap);
return ret;
}