patch-2.1.96 linux/kernel/printk.c

Next file: linux/kernel/signal.c
Previous file: linux/kernel/kmod.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.95/linux/kernel/printk.c linux/kernel/printk.c
@@ -358,7 +358,8 @@
 		if (console->index >= 0 &&
 		    console->index != console_cmdline[i].index)
 			continue;
-		if (console->index < 0) console->index = 0;
+		if (console->index < 0)
+			console->index = console_cmdline[i].index;
 		if (console->setup &&
 		    console->setup(console, console_cmdline[i].options) != 0)
 			break;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov