diff options
author | Damien George <damien.p.george@gmail.com> | 2016-01-08 13:49:58 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-01-08 13:49:58 +0000 |
commit | 978d2e55efaeed26f4e9d4c21a10e41e4f150f72 (patch) | |
tree | 12f90685dc8188a07703146cbd3c8d9284701dbe /py | |
parent | c1c57eafac684f961923f601162bce1b19237003 (diff) | |
download | micropython-978d2e55efaeed26f4e9d4c21a10e41e4f150f72.tar.gz micropython-978d2e55efaeed26f4e9d4c21a10e41e4f150f72.zip |
py/runtime: Use appropriate printf fmt for malloc num_bytes.
Diffstat (limited to 'py')
-rw-r--r-- | py/runtime.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/py/runtime.c b/py/runtime.c index 9ec282685f..c97710bc90 100644 --- a/py/runtime.c +++ b/py/runtime.c @@ -1351,7 +1351,7 @@ mp_obj_t mp_parse_compile_execute(mp_lexer_t *lex, mp_parse_input_kind_t parse_i #endif // MICROPY_ENABLE_COMPILER void *m_malloc_fail(size_t num_bytes) { - DEBUG_printf("memory allocation failed, allocating " UINT_FMT " bytes\n", num_bytes); + DEBUG_printf("memory allocation failed, allocating %u bytes\n", (uint)num_bytes); if (0) { // dummy #if MICROPY_ENABLE_GC @@ -1361,7 +1361,7 @@ void *m_malloc_fail(size_t num_bytes) { #endif } else { nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_MemoryError, - "memory allocation failed, allocating " UINT_FMT " bytes", num_bytes)); + "memory allocation failed, allocating %u bytes", (uint)num_bytes)); } } |