Skip to content

Commit

Permalink
[PATCH] i386/x86-64: make setup_early_printk() usage consistent
Browse files Browse the repository at this point in the history
The explicit and implicit calls to setup_early_printk() were passing
inconsistent arguments.

Signed-Off-By: Jan Beulich <[email protected]>

Signed-off-by: Andi Kleen <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Jan Beulich authored and Linus Torvalds committed Jan 12, 2006
1 parent 4092bde commit 2a2d592
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion arch/i386/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}
Expand Down
4 changes: 1 addition & 3 deletions arch/x86_64/kernel/early_printk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion arch/x86_64/kernel/head64.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2a2d592

Please sign in to comment.