4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-18 12:03:57 +08:00

[kernel] format scheduler log.

This commit is contained in:
Bernard Xiong 2018-12-19 20:10:18 +08:00
parent da612ebaf6
commit 58be04b693

View File

@ -445,8 +445,8 @@ void rt_schedule(void)
/* switch to new thread */ /* switch to new thread */
RT_DEBUG_LOG(RT_DEBUG_SCHEDULER, RT_DEBUG_LOG(RT_DEBUG_SCHEDULER,
("[%d]switch to priority#%d " ("[%d]switch to priority#%d "
"thread:%.*s(sp:0x%p), " "thread:%.*s(sp:0x%08x), "
"from thread:%.*s(sp: 0x%p)\n", "from thread:%.*s(sp: 0x%08x)\n",
rt_interrupt_nest, highest_ready_priority, rt_interrupt_nest, highest_ready_priority,
RT_NAME_MAX, to_thread->name, to_thread->sp, RT_NAME_MAX, to_thread->name, to_thread->sp,
RT_NAME_MAX, from_thread->name, from_thread->sp)); RT_NAME_MAX, from_thread->name, from_thread->sp));