提交 f71efa42 编写于 作者: B bernard.xiong@gmail.com

use precision in list_thread function.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2004 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 b6c1ebf4
......@@ -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");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册