libpayload: use PRIu64 type to print u64
commit612ae2ec7c2cabfd2190ed9844d4b91704b24c85
authorJeremy Compostella <jeremy.compostella@intel.com>
Tue, 22 Sep 2020 22:26:39 +0000 (22 15:26 -0700)
committerPatrick Georgi <pgeorgi@google.com>
Wed, 30 Sep 2020 10:16:44 +0000 (30 10:16 +0000)
tree352d8127ee5128a9bf78ea5a4a281dada6b72334
parent05ea79cf53f8c425b688c322f750acdfb428198a
libpayload: use PRIu64 type to print u64

The appropriate way to print a u64 variable regardless of the current
architecture is to use the PRI*64 macros.  libpayload is mostly used
in 32 bits but when ported to other projects and compiled in 64 bits
it breaks the compilation.

Change-Id: I479fd701f992701584d77d43c5cd5910f5ab7633
Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/45628
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
payloads/libpayload/drivers/options.c
payloads/libpayload/libc/time.c