Skip to contentSkip to conversation

printk: 'force_early_printk' boot param to help with debugging

PATCH New Peter Zijlstra 1 participant 1 message Sep 2, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 printk: 'force_early_printk' boot param to help with debugging

Subject: printk: 'force_early_printk' boot param to help with debugging
From: Peter Zijlstra <[email protected]>
Date: Fri Sep 02 14:29:33 CEST 2011

Gives me an option to screw printk and actually see what the machine says.

---
 kernel/printk.c |    7 +++++++
 1 file changed, 7 insertions(+)
kernel/printk.c +7 -0
Index: linux-2.6/kernel/printk.c
===================================================================
@@ -541,6 +541,13 @@ asmlinkage void early_printk(const char
  */
 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;