summaryrefslogtreecommitdiff
path: root/kernel/printk
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2011-09-02 12:29:33 (GMT)
committerScott Wood <scottwood@freescale.com>2014-04-10 00:18:47 (GMT)
commit28fb38e470bf1dfe86fac22f31dd9bacb5e68459 (patch)
treecada3124980db4f0cfc53f7197561080577562bf /kernel/printk
parent765986731ec002f5608d3bd3d4a093b645fb40ed (diff)
downloadlinux-fsl-qoriq-28fb38e470bf1dfe86fac22f31dd9bacb5e68459.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/printk')
-rw-r--r--kernel/printk/printk.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c
index 68e3f1a..184e346 100644
--- a/kernel/printk/printk.c
+++ b/kernel/printk/printk.c
@@ -1518,6 +1518,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;