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-05-14 18:37:54 (GMT)
commita91d84dffd88a306a920787a179cda7c52527930 (patch)
tree6889029654217b80228f4e2b69565111242193ad /kernel/printk
parent07f0e9109fafabe2c635a9e8fb38966cfec57b1d (diff)
downloadlinux-fsl-qoriq-a91d84dffd88a306a920787a179cda7c52527930.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 552b77c..957c1a2 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;