mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:48:11 +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
7235ddfd98
commit
019c9eb749
13 changed files with 41 additions and 28 deletions
|
@ -48,10 +48,15 @@ void SharedBuffer::sanity_check(const char* what)
|
|||
found_refs += ref.count;
|
||||
|
||||
if (found_refs != m_total_refs) {
|
||||
dbg() << what << " sanity -- SharedBuffer{" << this << "} id: " << m_shbuf_id << " has total refs " << m_total_refs << " but we found " << found_refs;
|
||||
for (const auto& ref : m_refs) {
|
||||
dbg() << " ref from pid " << ref.pid.value() << ": refcnt " << ref.count;
|
||||
}
|
||||
dbgln("{} sanity -- SharedBuffer({}) id: {} has total refs {} but we found {}",
|
||||
what,
|
||||
this,
|
||||
m_shbuf_id,
|
||||
m_total_refs,
|
||||
found_refs);
|
||||
|
||||
for (const auto& ref : m_refs)
|
||||
dbgln(" ref from pid {}: reference count {}", ref.pid.value(), ref.count);
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue