Kernel: Fix bitrotted code behind #ifdef SIGNAL_DEBUG

This commit is contained in:
Andreas Kling 2019-09-08 14:29:59 +02:00
parent 31ba7ba2cc
commit e386579436
Notes: sideshowbarker 2024-07-19 12:11:15 +09:00

View file

@ -185,7 +185,7 @@ const char* Thread::state_string() const
ASSERT(!m_blockers.is_empty());
return m_blockers.first()->state_string();
}
kprintf("to_string(Thread::State): Invalid state: %u\n", state());
kprintf("Thread::state_string(): Invalid state: %u\n", state());
ASSERT_NOT_REACHED();
return nullptr;
}
@ -457,7 +457,7 @@ ShouldUnblockThread Thread::dispatch_signal(u8 signal)
}
#ifdef SIGNAL_DEBUG
kprintf("signal: Okay, %s(%u) {%s} has been primed with signal handler %w:%x\n", process().name().characters(), pid(), to_string(state()), m_tss.cs, m_tss.eip);
kprintf("signal: Okay, %s(%u) {%s} has been primed with signal handler %w:%x\n", process().name().characters(), pid(), state_string(), m_tss.cs, m_tss.eip);
#endif
return ShouldUnblockThread::Yes;
}