Skip to content

Commit

Permalink
Fix date output in x86 microcode driver.
Browse files Browse the repository at this point in the history
The microcode stores its date in a uint32_t in some weird order
approximating pdp-endian. Rather than printing it like that, print it
properly in ISO standard form.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Cc: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
David Woodhouse authored and Ingo Molnar committed Aug 13, 2008
1 parent daa9c0f commit 34a1b9f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions arch/x86/kernel/microcode_intel.c
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,11 @@ static void apply_microcode(int cpu)
return;
}
printk(KERN_INFO "microcode: CPU%d updated from revision "
"0x%x to 0x%x, date = %08x \n",
cpu_num, uci->rev, val[1], uci->mc.mc_intel->hdr.date);
"0x%x to 0x%x, date = %04x-%02x-%02x \n",
cpu_num, uci->rev, val[1],
uci->mc.mc_intel->hdr.date & 0xffff,
uci->mc.mc_intel->hdr.date >> 24,
(uci->mc.mc_intel->hdr.date >> 16) & 0xff);
uci->rev = val[1];
}

Expand Down

0 comments on commit 34a1b9f

Please sign in to comment.