diff options
| author | [email protected] <[email protected]> | 2012-12-20 07:25:19 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2012-12-20 07:25:19 +0000 |
| commit | 0e40d55d9f6894aec2dfc844e8ea89756b0306fe (patch) | |
| tree | 6e8b5aeb4b1c4e9dc424918a1a9a2f9439c7ee2b /src/scheduler.c | |
| parent | ba4aa585a464893b01279d8724142002930f73b7 (diff) | |
fixed the coding style of RT_DEBUG_LOG
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2500 bbd45198-f89e-11dd-88c7-29a3b14d5316
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 */ |
