summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorarmink <[email protected]>2016-06-02 17:06:41 +0800
committerarmink <[email protected]>2016-06-02 17:06:41 +0800
commitcbbe5a6eddf1569a4ac0730395ec723fd2295de2 (patch)
tree84185d5d8f63d752d3788b93d691bfb9a6c7e404 /components
parent1bd8d0f75e83a77dadda99bf32eb249973f8b151 (diff)
[finsh] Beautify the list_thread command.
Diffstat (limited to 'components')
-rw-r--r--components/finsh/cmd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/finsh/cmd.c b/components/finsh/cmd.c
index 641915c867..757b18af62 100644
--- a/components/finsh/cmd.c
+++ b/components/finsh/cmd.c
@@ -122,12 +122,12 @@ static long _list_thread(struct rt_list_node *list)
thread_header[cur_max_name_len] = '\0';
thread_split[cur_max_name_len] = '\0';
- rt_kprintf("%s pri status sp stack size max used left tick error\n", thread_header);
- rt_kprintf("%s ---- ------- ---------- ---------- --- ---------- ---\n", thread_split);
+ rt_kprintf("%s pri status sp stack size max used left tick error\n", thread_header);
+ rt_kprintf("%s -- ------- ---------- ---------- --- ---------- ---\n", thread_split);
for (node = list->next; node != list; node = node->next)
{
thread = rt_list_entry(node, struct rt_thread, list);
- rt_kprintf("%-*.*s %02d ", cur_max_name_len, cur_max_name_len, thread->name, thread->current_priority);
+ rt_kprintf("%-*.*s %02d ", cur_max_name_len, cur_max_name_len, thread->name, thread->current_priority);
if (thread->stat == RT_THREAD_READY) rt_kprintf(" ready ");
else if (thread->stat == RT_THREAD_SUSPEND) rt_kprintf(" suspend");