How do I printf() a uint16_t?
You should use the style of inttypes.h but define the symbols yourself. For example: #define PRIu8 “hhu” #define PRId8 “hhd” #define PRIx8 “hhx” #define PRIu16 “hu” #define PRId16 “hd” #define PRIx16 “hx” #define PRIu32 “u” #define PRId32 “d” #define PRIx32 “x” #define PRIu64 “llu” // or possibly “lu” #define PRId64 “lld” // or possibly “ld” … Read more