diff options
| author | Damien George <damien@micropython.org> | 2021-12-15 16:54:47 +1100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2021-12-15 16:54:47 +1100 |
| commit | d6dc4cb65a222bd05ec2746c37e457c56484e780 (patch) | |
| tree | 9a42efcd67560beb182b62d6da89361e9cb4207f | |
| parent | 598618e8cf46ef716596bcf97d21a989c4ac15d3 (diff) | |
py/showbc: Fix printing of raw bytecode header on nanbox builds.
Signed-off-by: Damien George <damien@micropython.org>
| -rw-r--r-- | py/showbc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/py/showbc.c b/py/showbc.c index f3bd5ea15..da8077ecc 100644 --- a/py/showbc.c +++ b/py/showbc.c @@ -98,8 +98,8 @@ void mp_bytecode_print(const mp_print_t *print, const void *descr, const byte *i // raw bytecode dump size_t prelude_size = ip - mp_showbc_code_start + n_info + n_cell; - mp_printf(print, "Raw bytecode (code_info_size=" UINT_FMT ", bytecode_size=" UINT_FMT "):\n", - prelude_size, len - prelude_size); + mp_printf(print, "Raw bytecode (code_info_size=%u, bytecode_size=%u):\n", + (unsigned)prelude_size, (unsigned)(len - prelude_size)); for (mp_uint_t i = 0; i < len; i++) { if (i > 0 && i % 16 == 0) { mp_printf(print, "\n"); |
