From c1328a6dba0b22c0cdbefe67d8db0bc5423bee84 Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Mon, 14 Jun 2021 12:43:11 +0200 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/55493 Tested-by: build bot (Jenkins) Reviewed-by: Arthur Heymans --- src/northbridge/intel/haswell/raminit.c | 2 +- src/northbridge/intel/sandybridge/raminit_mrc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/northbridge') diff --git a/src/northbridge/intel/haswell/raminit.c b/src/northbridge/intel/haswell/raminit.c index 9660961c4e..45377839bc 100644 --- a/src/northbridge/intel/haswell/raminit.c +++ b/src/northbridge/intel/haswell/raminit.c @@ -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); diff --git a/src/northbridge/intel/sandybridge/raminit_mrc.c b/src/northbridge/intel/sandybridge/raminit_mrc.c index 43619cd592..fc143f67a6 100644 --- a/src/northbridge/intel/sandybridge/raminit_mrc.c +++ b/src/northbridge/intel/sandybridge/raminit_mrc.c @@ -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); -- cgit v1.2.3