1 From b8ce6b3c2bb4c54a9488eaed224ae4380d142e97 Mon Sep 17 00:00:00 2001
2 From: Peter Zijlstra <peterz@infradead.org>
3 Date: Fri, 2 Sep 2011 14:41:29 +0200
4 Subject: [PATCH 030/366] printk: Add "force_early_printk" boot param to help
7 Gives me an option to screw printk and actually see what the machine
10 Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
11 Link: http://lkml.kernel.org/r/1314967289.1301.11.camel@twins
12 Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
13 Link: http://lkml.kernel.org/n/tip-ykb97nsfmobq44xketrxs977@git.kernel.org
15 kernel/printk/printk.c | 7 +++++++
16 1 file changed, 7 insertions(+)
18 diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c
19 index d6f2e2a..1bc8365 100644
20 --- a/kernel/printk/printk.c
21 +++ b/kernel/printk/printk.c
22 @@ -1723,6 +1723,13 @@ asmlinkage void early_printk(const char *fmt, ...)
24 static bool __read_mostly printk_killswitch;
26 +static int __init force_early_printk_setup(char *str)
28 + printk_killswitch = true;
31 +early_param("force_early_printk", force_early_printk_setup);
33 void printk_kill(void)
35 printk_killswitch = true;