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>
This commit is contained in:
@ -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");
|
||||
|
Reference in New Issue
Block a user