diff options
| author | [email protected] <[email protected]> | 2012-03-22 06:01:22 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2012-03-22 06:01:22 +0000 |
| commit | f71efa4281afb0a56081a40720b7ec829c1fdb50 (patch) | |
| tree | 9a85157ee928a23c5eb1a4d87748f197eae47191 /components | |
| parent | b6c1ebf4235134192fda6f7350268847c872e00e (diff) | |
use precision in list_thread function.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2004 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components')
| -rw-r--r-- | components/finsh/cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/finsh/cmd.c b/components/finsh/cmd.c index e49f5d8379..d6edef00da 100644 --- a/components/finsh/cmd.c +++ b/components/finsh/cmd.c @@ -81,7 +81,7 @@ static long _list_thread(struct rt_list_node* list) for (node = list->next; node != list; node = node->next) { thread = rt_list_entry(node, struct rt_thread, list); - rt_kprintf("%-8s 0x%02x", thread->name, thread->current_priority); + rt_kprintf("%-8.*s 0x%02x", 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"); |
