patch-2.3.13 linux/kernel/panic.c
Next file: linux/kernel/printk.c
Previous file: linux/kernel/module.c
Back to the patch index
Back to the overall index
-  Lines: 17
-  Date:
Mon Aug  2 16:38:02 1999
-  Orig file: 
v2.3.12/linux/kernel/panic.c
-  Orig date: 
Wed Jul 21 15:46:48 1999
diff -u --recursive --new-file v2.3.12/linux/kernel/panic.c linux/kernel/panic.c
@@ -25,11 +25,13 @@
 
 int panic_timeout = 0;
 
-void __init panic_setup(char *str, int *ints)
+static int __init panic_setup(char *str)
 {
-	if (ints[0] == 1)
-		panic_timeout = ints[1];
+	panic_timeout = simple_strtoul(str, NULL, 0);
+	return 1;
 }
+
+__setup("panic=", panic_setup);
 
 NORET_TYPE void panic(const char * fmt, ...)
 {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)