diff options
author | Jacob Garber <jgarber1@ualberta.ca> | 2019-08-07 19:10:52 -0600 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2019-08-10 08:47:08 +0000 |
commit | 3a323808f62709c463d38dc30f06ace6b957d1d9 (patch) | |
tree | d30dea05738748acc2c5edeab1823dda843d4547 /src/lib/timestamp.c | |
parent | d073a0b9832dc94d447d6c38275a6f8f46381e4f (diff) |
include, lib: Add <inttypes.h> printf macros
In general, third party code (such as vboot) doesn't know what the
underlying types are for the integers in <stdint.h>, so these macros are
useful for portably printing them. Of these definitions, coreboot so far
has only used PRIu64 (in one place), which isn't needed anymore since we
know what the underlying type of a u64 is.
Change-Id: I9e3a300f9b1c38e4831b030ff8af3fed2fa60f14
Signed-off-by: Jacob Garber <jgarber1@ualberta.ca>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/33823
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/lib/timestamp.c')
-rw-r--r-- | src/lib/timestamp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/timestamp.c b/src/lib/timestamp.c index adacf6b1b3..1319b86670 100644 --- a/src/lib/timestamp.c +++ b/src/lib/timestamp.c @@ -180,8 +180,7 @@ static void timestamp_add_table_entry(struct timestamp_table *ts_table, tse->entry_stamp = ts_time - ts_table->base_time; if (CONFIG(TIMESTAMPS_ON_CONSOLE)) - printk(BIOS_SPEW, "Timestamp - %s: %" PRIu64 "\n", - timestamp_name(id), ts_time); + printk(BIOS_SPEW, "Timestamp - %s: %llu\n", timestamp_name(id), ts_time); if (ts_table->num_entries == ts_table->max_entries) printk(BIOS_ERR, "ERROR: Timestamp table full\n"); |