diff options
| author | David Lin <[email protected]> | 2021-07-06 17:31:52 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-07-06 17:31:52 +0800 |
| commit | 3e8de58e513e9134a0c43188ea4e4f80901def8d (patch) | |
| tree | 7a3b19b1387a568dee07763866b4efb75dfeee7f /components/finsh/cmd.c | |
| parent | 6efca1d120aa64b5345e6a0801f23c3fa0e47db4 (diff) | |
| parent | b3fa063a8dc16cd0817fbb5de8729af75fa09b8d (diff) | |
Merge branch 'RT-Thread:master' into master
Diffstat (limited to 'components/finsh/cmd.c')
| -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 4c76ab7395..9bbcc440cf 100644 --- a/components/finsh/cmd.c +++ b/components/finsh/cmd.c @@ -175,8 +175,8 @@ long list_thread(void) maxlen = RT_NAME_MAX; #ifdef RT_USING_SMP - rt_kprintf("%-*.s cpu pri status sp stack size max used left tick error\n", maxlen, item_title); object_split(maxlen); - rt_kprintf( " --- --- ------- ---------- ---------- ------ ---------- ---\n"); + rt_kprintf("%-*.s cpu bind pri status sp stack size max used left tick error\n", maxlen, item_title); object_split(maxlen); + rt_kprintf( " --- ---- --- ------- ---------- ---------- ------ ---------- ---\n"); #else rt_kprintf("%-*.s pri status sp stack size max used left tick error\n", maxlen, item_title); object_split(maxlen); rt_kprintf( " --- ------- ---------- ---------- ------ ---------- ---\n"); @@ -211,9 +211,9 @@ long list_thread(void) #ifdef RT_USING_SMP if (thread->oncpu != RT_CPU_DETACHED) - rt_kprintf("%-*.*s %3d %3d ", maxlen, RT_NAME_MAX, thread->name, thread->oncpu, thread->current_priority); + rt_kprintf("%-*.*s %3d %3d %4d ", maxlen, RT_NAME_MAX, thread->name, thread->oncpu, thread->bind_cpu, thread->current_priority); else - rt_kprintf("%-*.*s N/A %3d ", maxlen, RT_NAME_MAX, thread->name, thread->current_priority); + rt_kprintf("%-*.*s N/A %3d %4d ", maxlen, RT_NAME_MAX, thread->name, thread->bind_cpu, thread->current_priority); #else rt_kprintf("%-*.*s %3d ", maxlen, RT_NAME_MAX, thread->name, thread->current_priority); |
