Skip to content

Commit

Permalink
x86/xen/apic: WARN with details.
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
konradwilk authored and David Vrabel committed Mar 16, 2015
1 parent feb44f1 commit b3b06c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/xen/apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b3b06c7

Please sign in to comment.