summaryrefslogtreecommitdiff
path: root/src/include/stdint.h
diff options
context:
space:
mode:
authorJacob Garber <jgarber1@ualberta.ca>2019-08-07 19:10:52 -0600
committerNico Huber <nico.h@gmx.de>2019-08-10 08:47:08 +0000
commit3a323808f62709c463d38dc30f06ace6b957d1d9 (patch)
treed30dea05738748acc2c5edeab1823dda843d4547 /src/include/stdint.h
parentd073a0b9832dc94d447d6c38275a6f8f46381e4f (diff)
downloadcoreboot-3a323808f62709c463d38dc30f06ace6b957d1d9.tar.xz
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/include/stdint.h')
-rw-r--r--src/include/stdint.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/include/stdint.h b/src/include/stdint.h
index f363aab08a..0a8e153d6a 100644
--- a/src/include/stdint.h
+++ b/src/include/stdint.h
@@ -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 */