From 31109452c2cf1d8ec11db6df30329b101ae808f6 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Thu, 26 Apr 2012 02:04:53 +0200 Subject: 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 Reviewed-on: http://review.coreboot.org/929 Reviewed-by: Peter Stuge Tested-by: build bot (Jenkins) --- src/cpu/intel/microcode/microcode.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/cpu/intel') 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; } -- cgit v1.2.3