summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/cpu/proc.c
diff options
context:
space:
mode:
authorBorislav Petkov <borislav.petkov@amd.com>2011-10-17 16:45:10 +0200
committerBorislav Petkov <borislav.petkov@amd.com>2011-10-19 15:47:48 +0200
commit881e23e56764808e7ab1ed73b5d8a6700042ea38 (patch)
treea0c0bd32d317402a452949bca1638bbf4646fcde /arch/x86/kernel/cpu/proc.c
parentcoretemp: Get microcode revision from cpu_data (diff)
downloadlinux-881e23e56764808e7ab1ed73b5d8a6700042ea38.tar.xz
linux-881e23e56764808e7ab1ed73b5d8a6700042ea38.zip
x86, microcode: Correct microcode revision format
506ed6b53e00 ("x86, intel: Output microcode revision in /proc/cpuinfo") added microcode revision format to /proc/cpuinfo and the MCE handler in decimal format but both AMD and Intel patch levels are handled as hex numbers. Fix it. Acked-by: Andi Kleen <ak@linux.intel.com> Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Diffstat (limited to 'arch/x86/kernel/cpu/proc.c')
-rw-r--r--arch/x86/kernel/cpu/proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/proc.c b/arch/x86/kernel/cpu/proc.c
index 6254fdae3e77..14b23140e81f 100644
--- a/arch/x86/kernel/cpu/proc.c
+++ b/arch/x86/kernel/cpu/proc.c
@@ -86,7 +86,7 @@ static int show_cpuinfo(struct seq_file *m, void *v)
else
seq_printf(m, "stepping\t: unknown\n");
if (c->microcode)
- seq_printf(m, "microcode\t: %u\n", c->microcode);
+ seq_printf(m, "microcode\t: 0x%x\n", c->microcode);
if (cpu_has(c, X86_FEATURE_TSC)) {
unsigned int freq = cpufreq_quick_get(cpu);