mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:57:45 +00:00
Kernel: Fix bitrotted code behind #ifdef SIGNAL_DEBUG
This commit is contained in:
parent
31ba7ba2cc
commit
e386579436
1 changed files with 2 additions and 2 deletions
|
@ -185,7 +185,7 @@ const char* Thread::state_string() const
|
||||||
ASSERT(!m_blockers.is_empty());
|
ASSERT(!m_blockers.is_empty());
|
||||||
return m_blockers.first()->state_string();
|
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();
|
ASSERT_NOT_REACHED();
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
@ -457,7 +457,7 @@ ShouldUnblockThread Thread::dispatch_signal(u8 signal)
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef SIGNAL_DEBUG
|
#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
|
#endif
|
||||||
return ShouldUnblockThread::Yes;
|
return ShouldUnblockThread::Yes;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue