Skip to content

Commit 9d324b0

Browse files
committed
stm: Add specific UINT_FMT and INT_FMT.
For some reason, STM port, while it's 32 bit, needs %lu and %ld for printing machine_uint_t and machine_int_t.
1 parent 323f39a commit 9d324b0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

stm/mpconfigport.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313

1414
#define BYTES_PER_WORD (4)
1515

16+
#define UINT_FMT "%lu"
17+
#define INT_FMT "%ld"
18+
1619
typedef int32_t machine_int_t; // must be pointer size
1720
typedef uint32_t machine_uint_t; // must be pointer size
1821
typedef void *machine_ptr_t; // must be of pointer size

0 commit comments

Comments
 (0)