summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/thread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hle/kernel/thread.cpp')
-rw-r--r--src/core/hle/kernel/thread.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp
index 72a14bfac..2fae1b3bc 100644
--- a/src/core/hle/kernel/thread.cpp
+++ b/src/core/hle/kernel/thread.cpp
@@ -326,11 +326,11 @@ static void DebugThreadQueue() {
326 if (!thread) { 326 if (!thread) {
327 return; 327 return;
328 } 328 }
329 LOG_DEBUG(Kernel, "0x%02X 0x%08X (current)", thread->current_priority, GetCurrentThread()->GetHandle()); 329 LOG_DEBUG(Kernel, "0x%02X %u (current)", thread->current_priority, GetCurrentThread()->GetObjectId());
330 for (auto& t : thread_list) { 330 for (auto& t : thread_list) {
331 s32 priority = thread_ready_queue.contains(t.get()); 331 s32 priority = thread_ready_queue.contains(t.get());
332 if (priority != -1) { 332 if (priority != -1) {
333 LOG_DEBUG(Kernel, "0x%02X 0x%08X", priority, t->GetHandle()); 333 LOG_DEBUG(Kernel, "0x%02X %u", priority, t->GetObjectId());
334 } 334 }
335 } 335 }
336} 336}
@@ -459,13 +459,13 @@ void Reschedule() {
459 HLE::g_reschedule = false; 459 HLE::g_reschedule = false;
460 460
461 if (next != nullptr) { 461 if (next != nullptr) {
462 LOG_TRACE(Kernel, "context switch 0x%08X -> 0x%08X", prev->GetHandle(), next->GetHandle()); 462 LOG_TRACE(Kernel, "context switch %u -> %u", prev->GetObjectId(), next->GetObjectId());
463 SwitchContext(next); 463 SwitchContext(next);
464 } else { 464 } else {
465 LOG_TRACE(Kernel, "cannot context switch from 0x%08X, no higher priority thread!", prev->GetHandle()); 465 LOG_TRACE(Kernel, "cannot context switch from %u, no higher priority thread!", prev->GetObjectId());
466 466
467 for (auto& thread : thread_list) { 467 for (auto& thread : thread_list) {
468 LOG_TRACE(Kernel, "\thandle=0x%08X prio=0x%02X, status=0x%08X", thread->GetHandle(), 468 LOG_TRACE(Kernel, "\tid=%u prio=0x%02X, status=0x%08X", thread->GetObjectId(),
469 thread->current_priority, thread->status); 469 thread->current_priority, thread->status);
470 } 470 }
471 } 471 }