From fd534ffd75350b7f812001b003f060918edcd279 Mon Sep 17 00:00:00 2001 From: Eduardo Habkost Date: Wed, 5 Dec 2007 17:21:53 -0200 Subject: [PATCH] Disable early_printk() by default Temporary until a better solution for automatically skipping the VGA console is found. Signed-off-by: Eduardo Habkost --- arch/x86/kernel/early_printk.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/early_printk.c b/arch/x86/kernel/early_printk.c index cff84cd..4c70cc4 100644 --- a/arch/x86/kernel/early_printk.c +++ b/arch/x86/kernel/early_printk.c @@ -193,7 +193,7 @@ static struct console simnow_console = { }; /* Direct interface for emergencies */ -static struct console *early_console = &early_vga_console; +static struct console *early_console; static int early_console_initialized = 0; void early_printk(const char *fmt, ...) @@ -204,7 +204,8 @@ void early_printk(const char *fmt, ...) va_start(ap,fmt); n = vscnprintf(buf,512,fmt,ap); - early_console->write(early_console,buf,n); + if (likely(early_console)) + early_console->write(early_console,buf,n); va_end(ap); } -- 1.5.4.1