mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 10:18:15 +09: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
Notes:
sideshowbarker
2024-07-18 23:59:10 +09:00
Author: https://github.com/asynts
Commit: 4e8fd0216b
Pull-request: https://github.com/SerenityOS/serenity/pull/4870
7 changed files with 51 additions and 13 deletions
|
@ -238,7 +238,7 @@ void Thread::die_if_needed()
|
|||
// actual context switch
|
||||
u32 prev_flags;
|
||||
Processor::current().clear_critical(prev_flags, false);
|
||||
dbg() << "die_if_needed returned from clear_critical!!! in irq: " << Processor::current().in_irq();
|
||||
dbgln("die_if_needed returned from clear_critical!!! in irq: {}", Processor::current().in_irq());
|
||||
// We should never get here, but the scoped scheduler lock
|
||||
// will be released by Scheduler::context_switch again
|
||||
ASSERT_NOT_REACHED();
|
||||
|
@ -377,7 +377,7 @@ void Thread::finalize()
|
|||
}
|
||||
|
||||
if (m_dump_backtrace_on_finalization)
|
||||
dbg() << backtrace_impl();
|
||||
dbgln("{}", backtrace_impl());
|
||||
|
||||
kfree_aligned(m_fpu_state);
|
||||
drop_thread_count(false);
|
||||
|
@ -897,7 +897,7 @@ void Thread::set_state(State new_state, u8 stop_signal)
|
|||
if (previous_state == Invalid) {
|
||||
// If we were *just* created, we may have already pending signals
|
||||
if (has_unmasked_pending_signals()) {
|
||||
dbg() << "Dispatch pending signals to new thread " << *this;
|
||||
dbgln("Dispatch pending signals to new thread {}", *this);
|
||||
dispatch_one_pending_signal();
|
||||
}
|
||||
}
|
||||
|
@ -1115,3 +1115,10 @@ bool Thread::should_be_stopped() const
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
void AK::Formatter<Kernel::Thread>::format(FormatBuilder& builder, const Kernel::Thread& value)
|
||||
{
|
||||
return AK::Formatter<FormatString>::format(
|
||||
builder,
|
||||
"{}({}:{})", value.process().name(), value.pid().value(), value.tid().value());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue