summaryrefslogtreecommitdiff
path: root/src/cpu/intel/microcode
diff options
context:
space:
mode:
authorStefan Reinauer <stefan.reinauer@coreboot.org>2012-04-26 02:04:53 +0200
committerStefan Reinauer <stefan.reinauer@coreboot.org>2012-04-26 02:32:04 +0200
commit31109452c2cf1d8ec11db6df30329b101ae808f6 (patch)
tree19bac41051ae8bdc2abe40821dd923f447591f93 /src/cpu/intel/microcode
parent3f8989ebbce4305541c6df569d283f76029ae724 (diff)
downloadcoreboot-31109452c2cf1d8ec11db6df30329b101ae808f6.tar.xz
microcode: print date of microcode and unify output
Most subsystems print their name with a colon, and then the message. Do the same thing for the microcode update code. Also, each microcode update has a date header. Print the date from that header to make it easier to determine whether you're running the latest microcode. Change-Id: Ic22947c4b9f0502d4091d975e1f1ab42f70aa1aa Signed-off-by: Stefan Reinauer <reinauer@google.com> Reviewed-on: http://review.coreboot.org/929 Reviewed-by: Peter Stuge <peter@stuge.se> Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/cpu/intel/microcode')
-rw-r--r--src/cpu/intel/microcode/microcode.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/cpu/intel/microcode/microcode.c b/src/cpu/intel/microcode/microcode.c
index 91f7762b6e..1511798f66 100644
--- a/src/cpu/intel/microcode/microcode.c
+++ b/src/cpu/intel/microcode/microcode.c
@@ -95,7 +95,7 @@ void intel_update_microcode(const void *microcode_updates)
/* If this code is compiled with ROMCC we're probably in
* the bootblock and don't have console output yet.
*/
- printk(BIOS_DEBUG, "microcode_info: sig=0x%08x pf=0x%08x rev=0x%08x\n",
+ printk(BIOS_DEBUG, "microcode: sig=0x%x pf=0x%x revision=0x%x\n",
sig, pf, rev);
#endif
@@ -111,8 +111,10 @@ void intel_update_microcode(const void *microcode_updates)
new_rev = read_microcode_rev();
#if !defined(__ROMCC__)
- printk(BIOS_DEBUG, "microcode updated to revision: "
- "%08x from revision %08x\n", new_rev, rev);
+ printk(BIOS_DEBUG, "microcode: updated to revision "
+ "0x%x date=%04x-%02x-%02x\n", new_rev,
+ m->date & 0xffff, (m->date >> 16) & 0xff,
+ (m->date >> 24) & 0xff);
#endif
break;
}