diff options
| author | Bernard Xiong <[email protected]> | 2018-11-20 23:53:29 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-11-20 23:53:29 +0800 |
| commit | 25ee668feb7c4cfe9d5f131bcbb019e29409c06f (patch) | |
| tree | 47f132d0a7472768deabd2add67d990c0c6e64e7 /components | |
| parent | 6b6d122e3673ca64d2171d3daf1ae940edfa699a (diff) | |
| parent | 46dae3f35f5cc44664a26ebd87803156033a166a (diff) | |
Merge pull request #1988 from RT-Thread/dev-4.0.x
Dev 4.0.x
Diffstat (limited to 'components')
| -rw-r--r-- | components/finsh/cmd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/finsh/cmd.c b/components/finsh/cmd.c index c66f72e650..41e8a01f41 100644 --- a/components/finsh/cmd.c +++ b/components/finsh/cmd.c @@ -106,9 +106,9 @@ static long _list_thread(struct rt_list_node *list) while (*ptr == '#')ptr --; rt_kprintf(" 0x%08x 0x%08x %02d%% 0x%08x %03d\n", - ((rt_uint32_t)thread->sp - (rt_uint32_t)thread->stack_addr), + ((rt_ubase_t)thread->sp - (rt_ubase_t)thread->stack_addr), thread->stack_size, - ((rt_uint32_t)ptr - (rt_uint32_t)thread->stack_addr) * 100 / thread->stack_size, + ((rt_ubase_t)ptr - (rt_ubase_t)thread->stack_addr) * 100 / thread->stack_size, thread->remaining_tick, thread->error); #else @@ -116,9 +116,9 @@ static long _list_thread(struct rt_list_node *list) while (*ptr == '#')ptr ++; rt_kprintf(" 0x%08x 0x%08x %02d%% 0x%08x %03d\n", - (thread->stack_size + (rt_uint32_t)thread->stack_addr - (rt_uint32_t)thread->sp), + thread->stack_size + ((rt_ubase_t)thread->stack_addr - (rt_ubase_t)thread->sp), thread->stack_size, - (thread->stack_size + (rt_uint32_t)thread->stack_addr - (rt_uint32_t) ptr) * 100 + (thread->stack_size - ((rt_ubase_t) ptr - (rt_ubase_t) thread->stack_addr)) * 100 / thread->stack_size, thread->remaining_tick, thread->error); |
