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. Change-Id: Id51730c883d8fb9e87183121deb49f5fdda0114e Signed-off-by: Eugene D Myers <cedarhouse@comcast.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/45181 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: ron minnich <rminnich@gmail.com>
This commit is contained in:
parent
61a77d6fcc
commit
075df92298
|
@ -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%08lx\n", resource_size);
|
||||
printk(BIOS_DEBUG, "STM: ResourceSize - 0x%08x\n", (int) resource_size);
|
||||
if (resource_size == 0)
|
||||
return -1; // INVALID_PARAMETER;
|
||||
|
||||
|
|
Loading…
Reference in New Issue