patch-2.3.13 linux/kernel/printk.c
Next file: linux/kernel/resource.c
Previous file: linux/kernel/panic.c
Back to the patch index
Back to the overall index
- Lines: 31
- Date:
Wed Aug 4 15:55:31 1999
- Orig file:
v2.3.12/linux/kernel/printk.c
- Orig date:
Tue May 11 14:37:40 1999
diff -u --recursive --new-file v2.3.12/linux/kernel/printk.c linux/kernel/printk.c
@@ -50,7 +50,7 @@
/*
* Setup a list of consoles. Called from init/main.c
*/
-void __init console_setup(char *str, int *ints)
+static int __init console_setup(char *str)
{
struct console_cmdline *c;
char name[sizeof(c->name)];
@@ -88,17 +88,19 @@
if (strcmp(console_cmdline[i].name, name) == 0 &&
console_cmdline[i].index == idx) {
preferred_console = i;
- return;
+ return 1;
}
if (i == MAX_CMDLINECONSOLES)
- return;
+ return 1;
preferred_console = i;
c = &console_cmdline[i];
memcpy(c->name, name, sizeof(c->name));
c->options = options;
c->index = idx;
+ return 1;
}
+__setup("console=", console_setup);
/*
* Commands to do_syslog:
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)