From 701180f069b47f8d351b516d02225d0c00906319 Mon Sep 17 00:00:00 2001 From: Eugene Myers Date: Wed, 16 Jun 2021 09:26:38 -0400 Subject: [PATCH] security/intel/stm/SmmStm.c: Fix size_t printf format error Replaced the 'l' with a 'z' to clear up the issue. Change-Id: I696b615b4dd3bacda7151c91fff17f9b01b17821 Signed-off-by: Eugene Myers Reviewed-on: https://review.coreboot.org/c/coreboot/+/55623 Reviewed-by: Stefan Reinauer Tested-by: build bot (Jenkins) --- src/security/intel/stm/SmmStm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/security/intel/stm/SmmStm.c b/src/security/intel/stm/SmmStm.c index f23be70217..523a63f420 100644 --- a/src/security/intel/stm/SmmStm.c +++ b/src/security/intel/stm/SmmStm.c @@ -490,7 +490,7 @@ int add_pi_resource(STM_RSC *resource_list, uint32_t num_entries) return -1; // INVALID_PARAMETER; resource_size = get_resource_size(resource_list, num_entries); - printk(BIOS_DEBUG, "STM: ResourceSize - 0x%08lx\n", resource_size); + printk(BIOS_DEBUG, "STM: ResourceSize - 0x%08x\n", (int) resource_size); if (resource_size == 0) return -1; // INVALID_PARAMETER;