diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2011-09-02 12:29:33 (GMT) |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2015-02-13 22:20:16 (GMT) |
commit | 35eab4ea2d4725a0d2d88c25832c187d6babf9e6 (patch) | |
tree | 5a29ab083d0abfabe3329e91f1399d9015f2e248 /kernel | |
parent | b014e53ffb95146c8abc21265d5171531c42e92f (diff) | |
download | linux-fsl-qoriq-35eab4ea2d4725a0d2d88c25832c187d6babf9e6.tar.xz |
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/printk.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index a93a03b..22130f2 100644 --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c @@ -1517,6 +1517,13 @@ asmlinkage void early_printk(const char *fmt, ...) */ static bool __read_mostly printk_killswitch; +static int __init force_early_printk_setup(char *str) +{ + printk_killswitch = true; + return 0; +} +early_param("force_early_printk", force_early_printk_setup); + void printk_kill(void) { printk_killswitch = true; |