MRC platforms: Fix MRC version printk format specifiers
The printed values are unsigned, and should be printed accordingly. Change-Id: Ie5edce914c389c70460b1ed3390731e3568340dd Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/55493 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
This commit is contained in:
parent
91260932e0
commit
c1328a6dba
|
@ -165,7 +165,7 @@ static void sdram_initialize(struct pei_data *pei_data)
|
|||
|
||||
/* Print the MRC version after executing the UEFI PEI stage */
|
||||
u32 version = mchbar_read32(MRC_REVISION);
|
||||
printk(BIOS_DEBUG, "MRC Version %d.%d.%d Build %d\n",
|
||||
printk(BIOS_DEBUG, "MRC Version %u.%u.%u Build %u\n",
|
||||
(version >> 24) & 0xff, (version >> 16) & 0xff,
|
||||
(version >> 8) & 0xff, (version >> 0) & 0xff);
|
||||
|
||||
|
|
|
@ -176,7 +176,7 @@ void sdram_initialize(struct pei_data *pei_data)
|
|||
|
||||
/* Print the MRC version after executing the UEFI PEI stage */
|
||||
u32 version = mchbar_read32(MRC_REVISION);
|
||||
printk(BIOS_DEBUG, "MRC Version %d.%d.%d Build %d\n",
|
||||
printk(BIOS_DEBUG, "MRC Version %u.%u.%u Build %u\n",
|
||||
(version >> 24) & 0xff, (version >> 16) & 0xff,
|
||||
(version >> 8) & 0xff, (version >> 0) & 0xff);
|
||||
|
||||
|
|
|
@ -130,7 +130,7 @@ void sdram_initialize(struct pei_data *pei_data)
|
|||
|
||||
/* Print the MRC version after executing the UEFI PEI stage. */
|
||||
u32 version = mchbar_read32(MRC_REVISION);
|
||||
printk(BIOS_DEBUG, "MRC Version %d.%d.%d Build %d\n",
|
||||
printk(BIOS_DEBUG, "MRC Version %u.%u.%u Build %u\n",
|
||||
(version >> 24) & 0xff, (version >> 16) & 0xff,
|
||||
(version >> 8) & 0xff, (version >> 0) & 0xff);
|
||||
|
||||
|
|
Loading…
Reference in New Issue