diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2011-09-02 14:29:33 +0200 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2012-03-02 11:52:09 -0600 |
commit | 15db00a066c133ad8e6f24a5216785e68fdd22b4 (patch) | |
tree | 32f464d93f6872f889713690fdc30a48511c6066 /kernel | |
parent | f7e1d245afcd9b1219ab116683904840ef632a95 (diff) |
printk: 'force_early_printk' boot param to help with debugging
Gives me an option to screw printk and actually see what the machine
says.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1314967289.1301.11.camel@twins
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/n/tip-ykb97nsfmobq44xketrxs977@git.kernel.org
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/printk.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/printk.c b/kernel/printk.c index 96ee3cd75be0..1f0662691664 100644 --- a/kernel/printk.c +++ b/kernel/printk.c @@ -541,6 +541,13 @@ asmlinkage void early_printk(const char *fmt, ...) */ static int __read_mostly printk_killswitch; +static int __init force_early_printk_setup(char *str) +{ + printk_killswitch = 1; + return 0; +} +early_param("force_early_printk", force_early_printk_setup); + void printk_kill(void) { printk_killswitch = 1; |