Do not print the "(LB) " for the first line of LinuxBIOS output (looks
ugly because there are two \n\n before the "LinuxBIOS-3.0.0". Some cosmetic fixeѕ (trivial). Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@212 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
parent
97c886a70c
commit
4d52c1b047
1 changed files with 10 additions and 5 deletions
|
|
@ -6,7 +6,8 @@
|
|||
// FIXME: we need this for varargs
|
||||
#include <stdarg.h>
|
||||
|
||||
extern int vtxprintf(void (*)(unsigned char, void *arg), void *arg, const char *, va_list);
|
||||
extern int vtxprintf(void (*)(unsigned char, void *arg), void *arg,
|
||||
const char *, va_list);
|
||||
|
||||
int console_loglevel(void)
|
||||
{
|
||||
|
|
@ -40,7 +41,8 @@ int printk(int msg_level, const char *fmt, ...)
|
|||
|
||||
void console_init(void)
|
||||
{
|
||||
static const char console_test[] =
|
||||
va_list args;
|
||||
static const char console_test[] =
|
||||
"\n\nLinuxBIOS-"
|
||||
LINUXBIOS_VERSION
|
||||
LINUXBIOS_EXTRA_VERSION
|
||||
|
|
@ -48,13 +50,16 @@ void console_init(void)
|
|||
LINUXBIOS_BUILD
|
||||
" starting...\n";
|
||||
|
||||
printk(BIOS_INFO, console_test);
|
||||
/* We don't use printk() directly here in order to avoid printing
|
||||
the "(LB) " in the first line of LinuxBIOS output. */
|
||||
if (BIOS_INFO < console_loglevel())
|
||||
vtxprintf(console_tx_byte, (void *)0, console_test, args);
|
||||
}
|
||||
|
||||
void die(const char *str)
|
||||
{
|
||||
printk(BIOS_EMERG,str);
|
||||
printk(BIOS_EMERG, str);
|
||||
do {
|
||||
hlt();
|
||||
} while(1);
|
||||
} while (1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue