From: Konrad Rzeszutek Wilk Date: Tue, 3 Mar 2015 21:12:12 +0000 (-0500) Subject: x86/xen/apic: WARN with details. X-Git-Tag: v4.1-rc1~111^2~9 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b3b06c7eb7820cea5c15f9faa4964044284c5399;p=karo-tx-linux.git x86/xen/apic: WARN with details. We should not be writting to the APIC registers under Xen PV. But if we do instead of just giving an blanket warning - include some details to help troubleshoot. Signed-off-by: Konrad Rzeszutek Wilk --- diff --git a/arch/x86/xen/apic.c b/arch/x86/xen/apic.c index 5e0ecaf4c336..70e060ad879a 100644 --- a/arch/x86/xen/apic.c +++ b/arch/x86/xen/apic.c @@ -73,7 +73,7 @@ static u32 xen_apic_read(u32 reg) static void xen_apic_write(u32 reg, u32 val) { /* Warn to see if there's any stray references */ - WARN_ON(1); + WARN(1,"register: %x, value: %x\n", reg, val); } static u64 xen_apic_icr_read(void)