[PATCH 2/3] [RFC] Print a watchdog message at KERN_WARNING level

Paul Bolle pebolle at tiscali.nl
Thu Feb 3 22:08:10 UTC 2011


For messages like
    NMI watchdog disabled for cpu0: unable to create perf event: -95

KERN_WARNING seems to be more appropriate than KERN_ERR. (Main benefit
of the KERN_WARNING level is that Fedora's plymouth bootsplash should
now hide them.)

Signed-off-by: Paul Bolle <pebolle at tiscali.nl>
---
Yes, the changed line is getting very long, but that is apparently not a
problem in this file.

 kernel/watchdog.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/watchdog.c b/kernel/watchdog.c
index f37f974..1c2ffe1 100644
--- a/kernel/watchdog.c
+++ b/kernel/watchdog.c
@@ -363,7 +363,7 @@ static int watchdog_nmi_enable(int cpu)
 		goto out_save;
 	}
 
-	printk(KERN_ERR "NMI watchdog disabled for cpu%i: unable to create perf event: %ld\n",
+	printk(KERN_WARNING "NMI watchdog disabled for cpu%i: unable to create perf event: %ld\n",
 	       cpu, PTR_ERR(event));
 	return PTR_ERR(event);
 
-- 
1.7.4



More information about the kernel mailing list