summaryrefslogtreecommitdiff
path: root/src/security/intel/stm
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2020-09-30 19:22:17 +0200
committerFelix Held <felix-coreboot@felixheld.de>2020-10-01 18:59:18 +0000
commitbbbdba1e50d1fa96708b4ce07f15a36b70244bbb (patch)
treea5140e59c370e1f46e13fa8262e7a0b5d293494f /src/security/intel/stm
parent310e050b247da9d8692bb2b18fc6b000252a5395 (diff)
security/intel/stm: Fix size_t printf format error
This sort-of reverts commit 075df92298fe3bb0ef04233395effe668c4a5550 and fixes the underlying issue. The printf format string type/length specifier for a size_t type is z. Change-Id: I897380060f7ea09700f77beb81d52c18a45326ad Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/45872 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Eugene Myers <cedarhouse1@comcast.net> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/security/intel/stm')
-rw-r--r--src/security/intel/stm/SmmStm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/security/intel/stm/SmmStm.c b/src/security/intel/stm/SmmStm.c
index 00490cfa5e..e2fab0c063 100644
--- a/src/security/intel/stm/SmmStm.c
+++ b/src/security/intel/stm/SmmStm.c
@@ -477,7 +477,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%08x\n", (int) resource_size);
+ printk(BIOS_DEBUG, "STM: ResourceSize - 0x%08zx\n", resource_size);
if (resource_size == 0)
return -1; // INVALID_PARAMETER;