From 108ba3b371fe9d4f944a91273c09c399b1d5847f Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Wed, 13 Jul 2016 09:37:23 +0800 Subject: [PATCH] [finsh] change display format for list_thread. --- components/finsh/cmd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/finsh/cmd.c b/components/finsh/cmd.c index 9939a2587c..92369be070 100644 --- a/components/finsh/cmd.c +++ b/components/finsh/cmd.c @@ -117,12 +117,12 @@ static long _list_thread(struct rt_list_node *list) maxlen = object_name_maxlen(list); - rt_kprintf("%-*.s pri status sp stack size max used left tick error\n", maxlen, "thread"); object_split(maxlen); - rt_kprintf( " -- ------- ---------- ---------- ------ ---------- ---\n"); + rt_kprintf("%-*.s pri status sp stack size max used left tick error\n", maxlen, "thread"); object_split(maxlen); + rt_kprintf( " --- ------- ---------- ---------- ------ ---------- ---\n"); for (node = list->next; node != list; node = node->next) { thread = rt_list_entry(node, struct rt_thread, list); - rt_kprintf("%-*.*s %02d ", maxlen, RT_NAME_MAX, thread->name, thread->current_priority); + rt_kprintf("%-*.*s %3d ", maxlen, RT_NAME_MAX, thread->name, thread->current_priority); if (thread->stat == RT_THREAD_READY) rt_kprintf(" ready "); else if (thread->stat == RT_THREAD_SUSPEND) rt_kprintf(" suspend"); -- GitLab