Cosmetics, coding style fixes (trivial).

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3180 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Uwe Hermann
2008-03-20 19:54:59 +00:00
parent 5f4c8abb65
commit 6a441bfb46
22 changed files with 348 additions and 401 deletions

View File

@ -42,7 +42,7 @@ void console_init(void)
static void device_putchar(unsigned char c)
{
#ifdef CONFIG_VGA_CONSOLE
vga_putchar(0x700| c);
vga_putchar(0x700 | c);
#endif
#ifdef CONFIG_SERIAL_CONSOLE
serial_putchar(c);
@ -65,10 +65,10 @@ int puts(const char *s)
while (*s) {
putchar(*s++);
n++;
}
}
putchar('\n');
return n+1;
return n + 1;
}
int havekey(void)
@ -81,13 +81,13 @@ int havekey(void)
if (keyboard_havechar())
return 1;
#endif
return 0;
return 0;
}
/* This returns an ascii value - the two getchar functions
cook the respective input from the device
*/
/**
* This returns an ASCII value - the two getchar functions
* cook the respective input from the device.
*/
int getchar(void)
{
while (1) {
@ -101,4 +101,3 @@ int getchar(void)
#endif
}
}