|
@@ -229,15 +229,14 @@ long list_thread(void)
|
|
thread->error);
|
|
thread->error);
|
|
#else
|
|
#else
|
|
ptr = (rt_uint8_t *)thread->stack_addr;
|
|
ptr = (rt_uint8_t *)thread->stack_addr;
|
|
- while (*ptr == '#')ptr ++;
|
|
|
|
-
|
|
|
|
- rt_kprintf(" 0x%08x 0x%08x %02d%% 0x%08x %03d\n",
|
|
|
|
|
|
+ while (*ptr == '#') ptr ++;
|
|
|
|
+ rt_kprintf(" 0x%08x 0x%08x %02d%% 0x%08x %s\n",
|
|
thread->stack_size + ((rt_ubase_t)thread->stack_addr - (rt_ubase_t)thread->sp),
|
|
thread->stack_size + ((rt_ubase_t)thread->stack_addr - (rt_ubase_t)thread->sp),
|
|
thread->stack_size,
|
|
thread->stack_size,
|
|
(thread->stack_size - ((rt_ubase_t) ptr - (rt_ubase_t) thread->stack_addr)) * 100
|
|
(thread->stack_size - ((rt_ubase_t) ptr - (rt_ubase_t) thread->stack_addr)) * 100
|
|
/ thread->stack_size,
|
|
/ thread->stack_size,
|
|
thread->remaining_tick,
|
|
thread->remaining_tick,
|
|
- thread->error);
|
|
|
|
|
|
+ rt_strerror(thread->error));
|
|
#endif
|
|
#endif
|
|
}
|
|
}
|
|
}
|
|
}
|