diff --git a/components/finsh/cmd.c b/components/finsh/cmd.c index 2d67c85fe35..ba48e3e4f8f 100644 --- a/components/finsh/cmd.c +++ b/components/finsh/cmd.c @@ -262,7 +262,7 @@ long list_thread(void) #else ptr = (rt_uint8_t *)thread->stack_addr; while (*ptr == '#') ptr ++; - rt_kprintf(" 0x%08x 0x%08x %02d%% 0x%08x %s %p", + rt_kprintf(" 0x%08x 0x%08x %3d%% 0x%08x %s %p", thread->stack_size + ((rt_ubase_t)thread->stack_addr - (rt_ubase_t)thread->sp), thread->stack_size, (thread->stack_size - ((rt_ubase_t) ptr - (rt_ubase_t) thread->stack_addr)) * 100