From 8c5994f92d2c23d011daaa39dbb0fab88425a1d2 Mon Sep 17 00:00:00 2001 From: Benjamin Doron Date: Sat, 20 Mar 2021 15:41:57 +0000 Subject: mb/emulation/qemu-q35: Fix format specifier for a `size_t` Fix compilation on GCC 10.2.1 Change-Id: I47d29ef065f57f171f429bb6a368bc86e31acee9 Signed-off-by: Benjamin Doron Reviewed-on: https://review.coreboot.org/c/coreboot/+/51684 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons --- src/mainboard/emulation/qemu-q35/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mainboard') diff --git a/src/mainboard/emulation/qemu-q35/cpu.c b/src/mainboard/emulation/qemu-q35/cpu.c index b30d7298ec..fb31fc5963 100644 --- a/src/mainboard/emulation/qemu-q35/cpu.c +++ b/src/mainboard/emulation/qemu-q35/cpu.c @@ -16,7 +16,7 @@ static void get_smm_info(uintptr_t *perm_smbase, size_t *perm_smsize, /* FIXME: on X86_64 the save state size is smaller than the size of the SMM stub */ *smm_save_state_size = sizeof(amd64_smm_state_save_area_t); - printk(BIOS_DEBUG, "Save state size: 0x%lx bytes\n", *smm_save_state_size); + printk(BIOS_DEBUG, "Save state size: 0x%zx bytes\n", *smm_save_state_size); } /* -- cgit v1.2.3