1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:17:44 +00:00

Everywhere: Fix obvious dbgln() bugs

This will allow compiletime dbgln() checks to pass
This commit is contained in:
AnotherTest 2021-01-17 12:32:26 +03:30 committed by Andreas Kling
parent b68e34cc2e
commit 53ce923e10
4 changed files with 4 additions and 4 deletions

View file

@ -133,7 +133,7 @@ u32 FutexQueue::wake_all(bool& is_empty)
ASSERT(data);
ASSERT(b.blocker_type() == Thread::Blocker::Type::Futex);
auto& blocker = static_cast<Thread::FutexBlocker&>(b);
dbgln<FUTEXQUEUE_DEBUG>("FutexQueue @ {}: wake_all unblocking", this, *static_cast<Thread*>(data));
dbgln<FUTEXQUEUE_DEBUG>("FutexQueue @ {}: wake_all unblocking {}", this, *static_cast<Thread*>(data));
if (blocker.unblock(true)) {
did_wake++;
return true;

View file

@ -231,7 +231,7 @@ bool Scheduler::pick_next()
}
if constexpr (SCHEDULER_RUNNABLE_DEBUG) {
dbgln("Scheduler thread list:", Processor::id());
dbgln("Scheduler thread list for processor {}:", Processor::id());
Thread::for_each([&](Thread& thread) -> IterationDecision {
switch (thread.state()) {
case Thread::Dying:

View file

@ -903,7 +903,7 @@ public:
}
if (m_blocker && !m_blocker->can_be_interrupted() && !m_should_die) {
block_lock2.unlock();
dbgln("Thread should not be unblocking, current state: ", state_string());
dbgln("Thread should not be unblocking, current state: {}", state_string());
set_state(Thread::Blocked);
continue;
}