浏览代码

[kernel] format scheduler log.

Bernard Xiong 6 年之前
父节点
当前提交
58be04b693
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/scheduler.c

+ 2 - 2
src/scheduler.c

@@ -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), "
-                         "from thread:%.*s(sp: 0x%p)\n",
+                         "thread:%.*s(sp:0x%08x), "
+                         "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));