coreboot/src/commonlib
Werner Zeh 314f280aac commonlib/fsp_relocate.c: Fix cbfstool build on 32-bit host
On a 32-bit host, uintptr_t is defined as 'unsigned int' instead of
'unsigend long int' like on a 64-bit host. When cbfstool is built on a
32-bit host, the printk format specifier '%lx' expects a 'long int'
while new_addr is of type 'uintptr_t', aka 'unsigned int'.
This in the end leads to a build error.

To fix this and make it build on both, 32- and 64-bit hosts, use PRIxPTR
as the format specifier. This macro will be resolved at compile time in
the right way on both, 32- and 64-bit hosts.

Test=Build cbfstool on 32- and 64-bit hosts.

Change-Id: Ia917d2ed31778f3a29c0a6c7368f74c15319b099
Signed-off-by: Werner Zeh <werner.zeh@siemens.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/69682
Reviewed-by: Mario Scheithauer <mario.scheithauer@siemens.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
2022-11-25 13:53:31 +00:00
..
bsd commonlib: Fix AMD MP2 BUFFER id 2022-11-04 01:06:12 +00:00
include/commonlib device & commonlib: Update pci_scan_bus postcodes 2022-11-12 22:52:54 +00:00
storage src/commonlib: Remove unnecessary space after casts 2022-11-22 13:47:15 +00:00
fsp_relocate.c commonlib/fsp_relocate.c: Fix cbfstool build on 32-bit host 2022-11-25 13:53:31 +00:00
iobuf.c src/commonlib: Clean up includes 2022-10-26 16:27:10 +00:00
Makefile.inc commonlib: Add support for rational number approximation 2022-08-03 03:26:13 +00:00
mem_pool.c commonlib/mem_pool: Allow configuring the alignment 2021-11-04 10:33:52 +00:00
rational.c commonlib: Add support for rational number approximation 2022-08-03 03:26:13 +00:00
region.c src/commonlib: Clean up includes 2022-10-26 16:27:10 +00:00
sort.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00