From 5f1d0b6b476f87f0c157ad458075a02d8e9a838f Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Wed, 11 Jan 2006 22:47:03 +0100 Subject: [PATCH] --- yaml --- r: 18019 b: refs/heads/master c: 2a2d5924c249e0f73aa00d617f8d5e242ea1430d h: refs/heads/master i: 18017: dec0284fbdd36837ef67d0074bb6f9e1c68e0713 18015: 6cfd7d5aba3893ac5da790468c261180bf19d4af v: v3 --- [refs] | 2 +- trunk/arch/i386/kernel/setup.c | 2 +- trunk/arch/x86_64/kernel/early_printk.c | 4 +--- trunk/arch/x86_64/kernel/head64.c | 2 +- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/[refs] b/[refs] index 913cafa464fa..eb7c57fdec28 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 4092bdebab46235d69fcd68afc710cddad550892 +refs/heads/master: 2a2d5924c249e0f73aa00d617f8d5e242ea1430d diff --git a/trunk/arch/i386/kernel/setup.c b/trunk/arch/i386/kernel/setup.c index a720f743ea6e..51e513b4f72d 100644 --- a/trunk/arch/i386/kernel/setup.c +++ b/trunk/arch/i386/kernel/setup.c @@ -1584,7 +1584,7 @@ void __init setup_arch(char **cmdline_p) if (s) { extern void setup_early_printk(char *); - setup_early_printk(s); + setup_early_printk(strchr(s, '=') + 1); printk("early console enabled\n"); } } diff --git a/trunk/arch/x86_64/kernel/early_printk.c b/trunk/arch/x86_64/kernel/early_printk.c index 9cd968dd0f5a..6dffb498ccd7 100644 --- a/trunk/arch/x86_64/kernel/early_printk.c +++ b/trunk/arch/x86_64/kernel/early_printk.c @@ -216,7 +216,7 @@ void early_printk(const char *fmt, ...) va_end(ap); } -static int keep_early; +static int __initdata keep_early; int __init setup_early_printk(char *opt) { @@ -226,8 +226,6 @@ int __init setup_early_printk(char *opt) if (early_console_initialized) return -1; - opt = strchr(opt, '=') + 1; - strlcpy(buf,opt,sizeof(buf)); space = strchr(buf, ' '); if (space) diff --git a/trunk/arch/x86_64/kernel/head64.c b/trunk/arch/x86_64/kernel/head64.c index 2ea42ceb08f3..cea20a66c150 100644 --- a/trunk/arch/x86_64/kernel/head64.c +++ b/trunk/arch/x86_64/kernel/head64.c @@ -102,7 +102,7 @@ void __init x86_64_start_kernel(char * real_mode_data) #endif s = strstr(saved_command_line, "earlyprintk="); if (s != NULL) - setup_early_printk(s); + setup_early_printk(strchr(s, '=') + 1); #ifdef CONFIG_NUMA s = strstr(saved_command_line, "numa="); if (s != NULL)