1 parent 3235b95 commit cadbd7fCopy full SHA for cadbd7f
1 file changed
py/modmicropython.c
@@ -72,7 +72,8 @@ mp_obj_t mp_micropython_mem_info(size_t n_args, const mp_obj_t *args) {
72
(mp_uint_t)m_get_total_bytes_allocated(), (mp_uint_t)m_get_current_bytes_allocated(), (mp_uint_t)m_get_peak_bytes_allocated());
73
#endif
74
#if MICROPY_STACK_CHECK
75
- mp_printf(&mp_plat_print, "stack: " UINT_FMT " out of " INT_FMT "\n", mp_stack_usage(), MP_STATE_THREAD(stack_limit));
+ mp_printf(&mp_plat_print, "stack: " UINT_FMT " out of " UINT_FMT "\n",
76
+ mp_stack_usage(), (mp_uint_t)MP_STATE_THREAD(stack_limit));
77
#else
78
mp_printf(&mp_plat_print, "stack: " UINT_FMT "\n", mp_stack_usage());
79
0 commit comments