diff options
author | David Woodhouse <dwmw2@infradead.org> | 2008-08-12 08:25:44 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-08-13 12:54:56 -0400 |
commit | 34a1b9fc4995102ecbb3a980b348aebf168d8196 (patch) | |
tree | 3ad70afa229ddff17b033cea1279d05cfc583d69 /arch | |
parent | daa9c0fee1cbe1d49fbe29af3d4bb16312043b1e (diff) |
Fix date output in x86 microcode driver.
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kernel/microcode_intel.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/x86/kernel/microcode_intel.c b/arch/x86/kernel/microcode_intel.c index a61986e8b691..d2d9d74f4cbb 100644 --- a/arch/x86/kernel/microcode_intel.c +++ b/arch/x86/kernel/microcode_intel.c | |||
@@ -339,8 +339,11 @@ static void apply_microcode(int cpu) | |||
339 | return; | 339 | return; |
340 | } | 340 | } |
341 | printk(KERN_INFO "microcode: CPU%d updated from revision " | 341 | printk(KERN_INFO "microcode: CPU%d updated from revision " |
342 | "0x%x to 0x%x, date = %08x \n", | 342 | "0x%x to 0x%x, date = %04x-%02x-%02x \n", |
343 | cpu_num, uci->rev, val[1], uci->mc.mc_intel->hdr.date); | 343 | cpu_num, uci->rev, val[1], |
344 | uci->mc.mc_intel->hdr.date & 0xffff, | ||
345 | uci->mc.mc_intel->hdr.date >> 24, | ||
346 | (uci->mc.mc_intel->hdr.date >> 16) & 0xff); | ||
344 | uci->rev = val[1]; | 347 | uci->rev = val[1]; |
345 | } | 348 | } |
346 | 349 | ||