summaryrefslogtreecommitdiff
path: root/src/mainboard/emulation
diff options
context:
space:
mode:
authorBenjamin Doron <benjamin.doron00@gmail.com>2021-03-20 15:41:57 +0000
committerPatrick Georgi <pgeorgi@google.com>2021-03-24 07:54:05 +0000
commit8c5994f92d2c23d011daaa39dbb0fab88425a1d2 (patch)
treecb4d0b56b7ff783eab6e225f6af9b99bb913e1c3 /src/mainboard/emulation
parent427487b173c9f3f312a99ff4838215c9b070b1d4 (diff)
downloadcoreboot-8c5994f92d2c23d011daaa39dbb0fab88425a1d2.tar.xz
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 <benjamin.doron00@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/51684 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/mainboard/emulation')
-rw-r--r--src/mainboard/emulation/qemu-q35/cpu.c2
1 files changed, 1 insertions, 1 deletions
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);
}
/*