summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2018-12-19 20:10:18 +0800
committerBernard Xiong <[email protected]>2018-12-19 20:10:18 +0800
commit58be04b69351d7c6caeea636a400dad5f6c708bc (patch)
tree4bf70084ffd11a297e6db8fc9160067dc8b31c09
parentda612ebaf6cf48556e9cd653b0b02822c517dd1a (diff)
[kernel] format scheduler log.
-rw-r--r--src/scheduler.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scheduler.c b/src/scheduler.c
index cd66284c7a..850c70306d 100644
--- a/src/scheduler.c
+++ b/src/scheduler.c
@@ -445,8 +445,8 @@ void rt_schedule(void)
/* switch to new thread */
RT_DEBUG_LOG(RT_DEBUG_SCHEDULER,
("[%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_NAME_MAX, to_thread->name, to_thread->sp,
RT_NAME_MAX, from_thread->name, from_thread->sp));