diff options
Diffstat (limited to 'src/scheduler.c')
| -rw-r--r-- | src/scheduler.c | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/src/scheduler.c b/src/scheduler.c index 27f0fc53f4..512d4ecfea 100644 --- a/src/scheduler.c +++ b/src/scheduler.c @@ -129,8 +129,8 @@ void rt_system_scheduler_init(void) rt_scheduler_lock_nest = 0; - RT_DEBUG_LOG(RT_DEBUG_SCHEDULER, - ("start scheduler: max priority 0x%02x\n", RT_THREAD_PRIORITY_MAX)); + RT_DEBUG_LOG(RT_DEBUG_SCHEDULER, ("start scheduler: max priority 0x%02x\n", + RT_THREAD_PRIORITY_MAX)); for (offset = 0; offset < RT_THREAD_PRIORITY_MAX; offset ++) { @@ -270,8 +270,10 @@ void rt_schedule(void) /* switch to new thread */ RT_DEBUG_LOG(RT_DEBUG_SCHEDULER, - ("[%d]switch to priority#%d thread:%s\n", rt_interrupt_nest, - highest_ready_priority, to_thread->name)); + ("[%d]switch to priority#%d thread:%s\n", + rt_interrupt_nest, + highest_ready_priority, + to_thread->name)); #ifdef RT_USING_OVERFLOW_CHECK _rt_scheduler_stack_check(to_thread); @@ -319,10 +321,14 @@ void rt_schedule_insert_thread(struct rt_thread *thread) /* set priority mask */ #if RT_THREAD_PRIORITY_MAX <= 32 RT_DEBUG_LOG(RT_DEBUG_SCHEDULER, ("insert thread[%s], the priority: %d\n", - thread->name, thread->current_priority)); + thread->name, thread->current_priority)); #else - RT_DEBUG_LOG(RT_DEBUG_SCHEDULER, ("insert thread[%s], the priority: %d 0x%x %d\n", - thread->name, thread->number, thread->number_mask, thread->high_mask)); + RT_DEBUG_LOG(RT_DEBUG_SCHEDULER, + ("insert thread[%s], the priority: %d 0x%x %d\n", + thread->name, + thread->number, + thread->number_mask, + thread->high_mask)); #endif #if RT_THREAD_PRIORITY_MAX > 32 @@ -352,10 +358,14 @@ void rt_schedule_remove_thread(struct rt_thread *thread) #if RT_THREAD_PRIORITY_MAX <= 32 RT_DEBUG_LOG(RT_DEBUG_SCHEDULER, ("remove thread[%s], the priority: %d\n", - thread->name, thread->current_priority)); + thread->name, thread->current_priority)); #else - RT_DEBUG_LOG(RT_DEBUG_SCHEDULER, ("remove thread[%s], the priority: %d 0x%x %d\n", - thread->name, thread->number, thread->number_mask, thread->high_mask)); + RT_DEBUG_LOG(RT_DEBUG_SCHEDULER, + ("remove thread[%s], the priority: %d 0x%x %d\n", + thread->name, + thread->number, + thread->number_mask, + thread->high_mask)); #endif /* remove thread from ready list */ |
