[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [linux-2.6.18-xen] x86-64/MCE: flip CPU and bank numbers in log message
# HG changeset patch # User Jan Beulich <jbeulich@xxxxxxxx> # Date 1417520601 -3600 # Node ID e8c8784ca274e2200c1b4ab9b41912acce1f33ae # Parent 49e06ed72c53a183378ec6efc97caf26846678e7 x86-64/MCE: flip CPU and bank numbers in log message Seeing "CPU8, BANK0" when "CPU0, BANK8" is meant can be rather confusing when trying to decode the remaining printed information or determine the offending physical CPU package. Reformat the message so that one can recognize whether it's a properly or wrongly ordered one without needing to know the precise kernel version. Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> --- diff -r 49e06ed72c53 -r e8c8784ca274 arch/x86_64/kernel/mce_dom0.c --- a/arch/x86_64/kernel/mce_dom0.c Thu Nov 13 15:17:12 2014 +0100 +++ b/arch/x86_64/kernel/mce_dom0.c Tue Dec 02 12:43:21 2014 +0100 @@ -38,8 +38,8 @@ static int convert_log(struct mc_info *m m.tsc = mc_bank->mc_tsc; m.res1 = mc_bank->mc_ctrl2; m.bank = mc_bank->mc_bank; - printk(KERN_DEBUG "[CPU%d, BANK%d, addr %llx, state %llx]\n", - m.bank, m.cpu, m.addr, m.status); + printk(KERN_DEBUG "[CPU %d bank %d addr %Lx state %Lx]\n", + m.cpu, m.bank, m.addr, m.status); /*log this record*/ mce_log(&m); } _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |