diff mbox series

[V2,03/10] include: Expand print conversion specificier macros

Message ID 20220315124914.51569-4-clombard@linux.vnet.ibm.com
State Superseded
Headers show
Series Import external libraries for MCTP/PLDM protocols | expand

Commit Message

Christophe Lombard March 15, 2022, 12:49 p.m. UTC
Add PRIxu macros into include inttypes file.
These macros are required by the external library: libmctp.

Signed-off-by: Christophe Lombard <clombard@linux.vnet.ibm.com>
---
 include/inttypes.h | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox series

Patch

diff --git a/include/inttypes.h b/include/inttypes.h
index 984c1f61..324385a1 100644
--- a/include/inttypes.h
+++ b/include/inttypes.h
@@ -28,4 +28,10 @@ 
 #define PRIx64 "llx"
 #endif
 
+#define PRIu32 "u"
+#define PRIx32 "x"
+
+#define PRIu16 "hu"
+#define PRIx16 "hx"
+
 #endif