Skip to content

Commit 55306ad

Browse files
wdfk-progRbb666
authored andcommitted
fix(finsh): Correct stack usage display format in list_thread command
1 parent e3640ff commit 55306ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/finsh/cmd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ long list_thread(void)
262262
#else
263263
ptr = (rt_uint8_t *)thread->stack_addr;
264264
while (*ptr == '#') ptr ++;
265-
rt_kprintf(" 0x%08x 0x%08x %02d%% 0x%08x %s %p",
265+
rt_kprintf(" 0x%08x 0x%08x %3d%% 0x%08x %s %p",
266266
thread->stack_size + ((rt_ubase_t)thread->stack_addr - (rt_ubase_t)thread->sp),
267267
thread->stack_size,
268268
(thread->stack_size - ((rt_ubase_t) ptr - (rt_ubase_t) thread->stack_addr)) * 100

0 commit comments

Comments
 (0)