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:
@ -110,10 +110,4 @@ typedef _Bool bool;
|
||||
#define true 1
|
||||
#define false 0
|
||||
|
||||
/* TODO: move into inttypes.h */
|
||||
#ifndef __ROMCC__
|
||||
#define PRIu64 "llu"
|
||||
#define PRIxPTR "lx"
|
||||
#endif
|
||||
|
||||
#endif /* STDINT_H */
|
||||
|
Reference in New Issue
Block a user