diff options
author | Damien George <damien.p.george@gmail.com> | 2015-12-17 12:41:40 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-12-17 12:41:40 +0000 |
commit | 257848587fb03879e145a34c8065927cf4d1532f (patch) | |
tree | b624a1b7b6ddd1204dae557c432b793cdee42aa9 /py/modmicropython.c | |
parent | 1d899e1783dd966452a40c6c29d6d8b8f9cd0e46 (diff) |
py/qstr: Use size_t instead of mp_uint_t when counting allocated bytes.
Diffstat (limited to 'py/modmicropython.c')
-rw-r--r-- | py/modmicropython.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/py/modmicropython.c b/py/modmicropython.c index 9c578a89c..b5ab2e265 100644 --- a/py/modmicropython.c +++ b/py/modmicropython.c @@ -79,9 +79,9 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(mp_micropython_mem_info_obj, 0, 1, mp STATIC mp_obj_t mp_micropython_qstr_info(mp_uint_t n_args, const mp_obj_t *args) { (void)args; - mp_uint_t n_pool, n_qstr, n_str_data_bytes, n_total_bytes; + size_t n_pool, n_qstr, n_str_data_bytes, n_total_bytes; qstr_pool_info(&n_pool, &n_qstr, &n_str_data_bytes, &n_total_bytes); - mp_printf(&mp_plat_print, "qstr pool: n_pool=" UINT_FMT ", n_qstr=" UINT_FMT ", n_str_data_bytes=" UINT_FMT ", n_total_bytes=" UINT_FMT "\n", + mp_printf(&mp_plat_print, "qstr pool: n_pool=%u, n_qstr=%u, n_str_data_bytes=%u, n_total_bytes=%u\n", n_pool, n_qstr, n_str_data_bytes, n_total_bytes); if (n_args == 1) { // arg given means dump qstr data |