Skip to contentSkip to conversation

Make i386 boot not so chatty

PATCH Zwane Mwaikambo 2 participants 2 messages May 21, 2004 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 4 lines · Zwane Mwaikambo

This patch silences the default i386 boot by putting a lot of development related printks under KERN_DEBUG loglevel, allowing the normal chatty mode to be turned on by using the 'debug' kernel parameter. I have avoided changing files which have external development repositories, like cpufreq and ACPI.

How about this much simpler patch?

-Andi

kernel/printk.c renamed from kernel/printk.c-o +1 -1
diff -u linux/kernel/printk.c-o linux/kernel/printk.c
@@ -37,7 +37,7 @@
 #define __LOG_BUF_LEN	(1 << CONFIG_LOG_BUF_SHIFT)
 
 /* printk's without a loglevel use this.. */
-#define DEFAULT_MESSAGE_LOGLEVEL 4 /* KERN_WARNING */
+#define DEFAULT_MESSAGE_LOGLEVEL 6 /* KERN_INFO */
 
 /* We show everything that is MORE important than this.. */
 #define MINIMUM_CONSOLE_LOGLEVEL 1 /* Minimum loglevel we let people use */
#2 lore raw
Quoted 9 lines · Andi Kleen
Quoted 4 lines · Zwane Mwaikambo

This patch silences the default i386 boot by putting a lot of development related printks under KERN_DEBUG loglevel, allowing the normal chatty mode to be turned on by using the 'debug' kernel parameter. I have avoided changing files which have external development repositories, like cpufreq and ACPI.

How about this much simpler patch?

kernel/printk.c line 40

Quoted 5 lines
kernel/printk.c renamed from kernel/printk.c-o +1 -2
-Andi
 
 /* printk's without a loglevel use this.. */
-#define DEFAULT_MESSAGE_LOGLEVEL 4 /* KERN_WARNING */
+#define DEFAULT_MESSAGE_LOGLEVEL 6 /* KERN_INFO */

Still rather verbose, there is too much debugging stuff under KERN_INFO.