From 56a2b607b560de6ddb45c51de51e88cf530254bc Mon Sep 17 00:00:00 2001 From: apio Date: Wed, 11 Dec 2024 19:16:22 +0100 Subject: [PATCH] kernel: Fix some debug-only log strings after the process rework --- kernel/src/sys/exec.cpp | 2 +- kernel/src/thread/Scheduler.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/src/sys/exec.cpp b/kernel/src/sys/exec.cpp index 70101810..f0d84a9c 100644 --- a/kernel/src/sys/exec.cpp +++ b/kernel/src/sys/exec.cpp @@ -243,7 +243,7 @@ Result sys_fork(Registers* regs, SyscallArgs) Scheduler::add_process(process); #ifdef FORK_DEBUG - kdbgln("fork: thread %d forked into child %d", current->id, thread->id); + kdbgln("fork: thread %d forked into child %d", current->id, process->id); #endif return process->id; diff --git a/kernel/src/thread/Scheduler.cpp b/kernel/src/thread/Scheduler.cpp index a8247e7d..6d6d88db 100644 --- a/kernel/src/thread/Scheduler.cpp +++ b/kernel/src/thread/Scheduler.cpp @@ -251,7 +251,7 @@ namespace Scheduler CPU::disable_interrupts(); #ifdef REAP_DEBUG - kdbgln("reap: reaping thread with id %d", thread->id); + kdbgln("reap: reaping thread with id %d", thread->tid); #endif if (thread->is_kernel)