Allow the printk level to be set using a "conlevel=" parameter.
(Or is there already a different bootoption that does the same thing?)
Signed-off-by: Jan Engelhardt <jengelh@gmx.de>
printk.c | 9 +++++++++
1 file changed, 9 insertions(+)
Index: linux-2.6.21-rc5/kernel/printk.c
===================================================================
--- linux-2.6.21-rc5.orig/kernel/printk.c
+++ linux-2.6.21-rc5/kernel/printk.c
@@ -747,6 +747,15 @@ void resume_console(void)
}
#endif /* CONFIG_DISABLE_CONSOLE_SUSPEND */
+static __init int set_conlevel(char *str)
+{
+ if(*str >= '0' && *str <= '9')
+ *console_printk = *str - '0';
+ return 1;
+}
+
+__setup("conlevel=", set_conlevel);
+
/**
* acquire_console_sem - lock the console system for exclusive use.
*
#<EOF>
-
| Avi Kivity | [PATCH 09/58] KVM: MMU: Respect nonpae pagetable quadrant when zapping ptes |
| Andrew Morton | 2.6.25-rc2-mm1 |
| James Morris | Re: LSM conversion to static interface |
| Eric W. Biederman | Re: [PATCH] kexec: force x86_64 arches to boot kdump kernels on boot cpu |
git: | |
| David Miller | Re: 2.6.25-rc8: FTP transfer errors |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| David Miller | Re: [GIT *] Solos PCI ADSL card update |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
