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)
This commit is contained in:
parent
3f8989ebbc
commit
31109452c2
|
@ -95,7 +95,7 @@ void intel_update_microcode(const void *microcode_updates)
|
||||||
/* If this code is compiled with ROMCC we're probably in
|
/* If this code is compiled with ROMCC we're probably in
|
||||||
* the bootblock and don't have console output yet.
|
* 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);
|
sig, pf, rev);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -111,8 +111,10 @@ void intel_update_microcode(const void *microcode_updates)
|
||||||
new_rev = read_microcode_rev();
|
new_rev = read_microcode_rev();
|
||||||
|
|
||||||
#if !defined(__ROMCC__)
|
#if !defined(__ROMCC__)
|
||||||
printk(BIOS_DEBUG, "microcode updated to revision: "
|
printk(BIOS_DEBUG, "microcode: updated to revision "
|
||||||
"%08x from revision %08x\n", new_rev, rev);
|
"0x%x date=%04x-%02x-%02x\n", new_rev,
|
||||||
|
m->date & 0xffff, (m->date >> 16) & 0xff,
|
||||||
|
(m->date >> 24) & 0xff);
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue