summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2018-12-19 21:09:26 +0800
committerGitHub <[email protected]>2018-12-19 21:09:26 +0800
commita795c050978df87532f1c6f4abe63f534a0b29b6 (patch)
tree49c6c69877bdc4bcd47fa9780005d2fe6c594722
parentda612ebaf6cf48556e9cd653b0b02822c517dd1a (diff)
parent9b9dc591f5c1f1b6b6722832b38c4e836dc3b78c (diff)
Merge pull request #2092 from RT-Thread/kernel_cleanup
Kernel cleanup
-rw-r--r--components/lwp/lwp_syscall.h5
-rw-r--r--src/scheduler.c4
2 files changed, 2 insertions, 7 deletions
diff --git a/components/lwp/lwp_syscall.h b/components/lwp/lwp_syscall.h
index 286a0a8852..8389835138 100644
--- a/components/lwp/lwp_syscall.h
+++ b/components/lwp/lwp_syscall.h
@@ -5,11 +5,6 @@
*
* Change Logs:
* Date Author Notes
- * 2006-03-18 Bernard the first version
- * 2006-04-25 Bernard add rt_hw_context_switch_interrupt declaration
- * 2006-09-24 Bernard add rt_hw_context_switch_to declaration
- * 2012-12-29 Bernard add rt_hw_exception_install declaration
- * 2017-10-17 Hichard add some micros
* 2018-12-10 Jesven fix complie error in iar and keil
*/
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));