mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:07:44 +00:00
Everywhere: Replace a bundle of dbg with dbgln.
These changes are arbitrarily divided into multiple commits to make it easier to find potentially introduced bugs with git bisect.
This commit is contained in:
parent
019c9eb749
commit
4e8fd0216b
7 changed files with 51 additions and 13 deletions
|
@ -822,13 +822,13 @@ public:
|
|||
scheduler_lock.lock();
|
||||
ScopedSpinLock block_lock2(m_block_lock);
|
||||
if (should_be_stopped() || state() == Stopped) {
|
||||
dbg() << "Thread should be stopped, current state: " << state_string();
|
||||
dbgln("Thread should be stopped, current state: {}", state_string());
|
||||
set_state(Thread::Blocked);
|
||||
continue;
|
||||
}
|
||||
if (m_blocker && !m_blocker->can_be_interrupted() && !m_should_die) {
|
||||
block_lock2.unlock();
|
||||
dbg() << "Thread should not be unblocking, current state: " << state_string();
|
||||
dbgln("Thread should not be unblocking, current state: ", state_string());
|
||||
set_state(Thread::Blocked);
|
||||
continue;
|
||||
}
|
||||
|
@ -1311,3 +1311,8 @@ inline IterationDecision Scheduler::for_each_nonrunnable(Callback callback)
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
template<>
|
||||
struct AK::Formatter<Kernel::Thread> : AK::Formatter<FormatString> {
|
||||
void format(FormatBuilder&, const Kernel::Thread&);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue