History

x86/mce: Fix mce_rdmsrl() warning message

The MSR address we're dumping in there should be in hex, otherwise we get funsies like: [ 0.016000] WARNING: CPU: 1 PID: 0 at arch/x86/kernel/cpu/mcheck/mce.c:428 mce_rdmsrl+0xd9/0xe0 [ 0.016000] mce: Unable to read msr -1073733631! ^^^^^^^^^^^

Borislav Petkov committed 10 years ago

Commit 38c54cc1 parent 340e9831 file · +1 −1Browse files

Unified · Split

arch/x86/kernel/cpu/mcheck/mce.c+1−1
@@ -425,7 +425,7 @@ static u64 mce_rdmsrl(u32 msr) · 424 unmodified lines
425425 }
426426
427427 if (rdmsrl_safe(msr, &v)) {
428− WARN_ONCE(1, "mce: Unable to read msr %d!\n", msr);
428+ WARN_ONCE(1, "mce: Unable to read MSR 0x%x!\n", msr);
429429 /*
430430 * Return zero in case the access faulted. This should
431431 * not happen normally but can happen if the CPU does

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t