From 0bedbce52c8154ed544b80b4b0f88096b2976c9d Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Thu, 27 May 2004 14:46:10 +0000 Subject: [PATCH] Fixes the build when TRACE_SCHEDULER is defined git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7663 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/core/scheduler.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/kernel/core/scheduler.c b/src/kernel/core/scheduler.c index 8b40965d85..a5bfa7a121 100644 --- a/src/kernel/core/scheduler.c +++ b/src/kernel/core/scheduler.c @@ -162,12 +162,12 @@ scheduler_reschedule(void) struct thread *oldThread = thread_get_current_thread(); struct thread *nextThread, *prevThread; - TRACE(("reschedule(): cpu %d, cur_thread = 0x%x\n", smp_get_current_cpu(), thread_get_current_thread())); + TRACE(("reschedule(): cpu %d, cur_thread = 0x%lx\n", smp_get_current_cpu(), thread_get_current_thread()->id)); switch (oldThread->next_state) { case B_THREAD_RUNNING: case B_THREAD_READY: - TRACE(("enqueueing thread 0x%x into run q. pri = %d\n", oldThread, oldThread->priority)); + TRACE(("enqueueing thread 0x%lx into run q. pri = %d\n", oldThread->id, oldThread->priority)); scheduler_enqueue_in_run_queue(oldThread); break; case B_THREAD_SUSPENDED: @@ -179,7 +179,7 @@ scheduler_reschedule(void) thread_enqueue(oldThread, &dead_q); break; default: - TRACE(("not enqueueing thread 0x%x into run q. next_state = %d\n", old_thread, old_thread->next_state)); + TRACE(("not enqueueing thread 0x%lx into run q. next_state = %d\n", oldThread->id, oldThread->next_state)); break; } oldThread->state = oldThread->next_state;