From: Andrew Cooper Date: Tue, 25 Feb 2014 08:30:59 +0000 (+0100) Subject: x86/mce: Reduce boot-time logspam X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~5550 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a5ab9c9fa29cda7e1b18dbcaa69a5dbded96de32;p=xen.git 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. Signed-off-by: Andrew Cooper --- diff --git a/xen/arch/x86/cpu/mcheck/mce.c b/xen/arch/x86/cpu/mcheck/mce.c index b375ef7009..af6f0bea06 100644 --- a/xen/arch/x86/cpu/mcheck/mce.c +++ b/xen/arch/x86/cpu/mcheck/mce.c @@ -729,8 +729,10 @@ 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 ( mce_disabled ) + { + if ( bsp ) + printk(XENLOG_INFO "MCE support disabled by bootparam\n"); return; }