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)