Skip to contentSkip to conversation

x86/mce: Reduce boot-time logspam

PATCH New Andrew Cooper 1 participant 1 message Feb 24, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/mce: Reduce boot-time logspam

When booting with "no-mce", the user does not need to be told that "MCE support [was] disabled by bootparam" for each cpu. Furthermore, a file:line reference is unnecessary.

CC Keir Fraser <[email protected]>
CC Jan Beulich <[email protected]>
---
 xen/arch/x86/cpu/mcheck/mce.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
xen/arch/x86/cpu/mcheck/mce.c +2 -1
index b375ef7..d2df334 100644
@@ -730,7 +730,8 @@ void mcheck_init(struct cpuinfo_x86 *c, bool_t bsp)
     enum mcheck_type inited = mcheck_none;
 
     if (mce_disabled == 1) {
-        dprintk(XENLOG_INFO, "MCE support disabled by bootparam\n");
+        if (bsp)
+            printk(XENLOG_INFO "MCE support disabled by bootparam\n");
         return;
     }
 
Signature · 1 line
1.7.10.4