UPSTREAM: security/intel/stm: Fix size_t printf format error

Size_t seems to have a compiler dependency.  When building on the
Purism librem 15v4, size_t is 'unsigned long'.  In this instance,
the compiler is the coreboot configured cross-compiler.  In another
instance, size_t is defined as 'unsigned short'.  To get around
the formatting conflict caused by this, The variable of type
size_t was cast as 'unsigned int' in the format.

BUG=none
BRANCH=none
TEST=none

Change-Id: Ifecd940f5e56df6b17e9f12d6f49794a3b19a1a9
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Original-Commit-Id: 075df92298fe3bb0ef04233395effe668c4a5550
Original-Change-Id: Id51730c883d8fb9e87183121deb49f5fdda0114e
Original-Signed-off-by: Eugene D Myers <cedarhouse@comcast.net>
Original-Reviewed-on: https://review.coreboot.org/c/coreboot/+/45181
Original-Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Original-Reviewed-by: ron minnich <rminnich@gmail.com>
Ignore-CL-Reviewed-on: https://review.coreboot.org/c/coreboot/+/44623
Ignore-CL-Reviewed-on: https://review.coreboot.org/c/coreboot/+/44732
Ignore-CL-Reviewed-on: https://review.coreboot.org/c/coreboot/+/44885
Ignore-CL-Reviewed-on: https://review.coreboot.org/c/coreboot/+/45057
Ignore-CL-Reviewed-on: https://review.coreboot.org/c/coreboot/+/45170
Ignore-CL-Reviewed-on: https://review.coreboot.org/c/coreboot/+/45299
Ignore-CL-Reviewed-on: https://review.coreboot.org/c/coreboot/+/45455
Ignore-CL-Reviewed-on: https://review.coreboot.org/c/coreboot/+/44687
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/coreboot/+/2440826
Reviewed-by: Patrick Georgi <pgeorgi@chromium.org>
Tested-by: Patrick Georgi <pgeorgi@chromium.org>
Commit-Queue: Patrick Georgi <pgeorgi@chromium.org>
diff --git a/src/security/intel/stm/SmmStm.c b/src/security/intel/stm/SmmStm.c
index 7256401..00490cf 100644
--- a/src/security/intel/stm/SmmStm.c
+++ b/src/security/intel/stm/SmmStm.c
@@ -477,7 +477,7 @@
 		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;