1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-21 20:15:07 +00:00

MasterPTY: Use dbg() instead of dbgprintf()

This commit is contained in:
Liav A 2020-02-25 01:07:44 +02:00 committed by Andreas Kling
parent 900865e87c
commit 63a27992e8

View file

@ -49,7 +49,7 @@ MasterPTY::MasterPTY(unsigned index)
MasterPTY::~MasterPTY() MasterPTY::~MasterPTY()
{ {
#ifdef MASTERPTY_DEBUG #ifdef MASTERPTY_DEBUG
dbgprintf("~MasterPTY(%u)\n", m_index); dbg() << "~MasterPTY(" << m_index << ")";
#endif #endif
PTYMultiplexer::the().notify_master_destroyed({}, m_index); PTYMultiplexer::the().notify_master_destroyed({}, m_index);
} }
@ -89,7 +89,7 @@ bool MasterPTY::can_write(const FileDescription&) const
void MasterPTY::notify_slave_closed(Badge<SlavePTY>) void MasterPTY::notify_slave_closed(Badge<SlavePTY>)
{ {
#ifdef MASTERPTY_DEBUG #ifdef MASTERPTY_DEBUG
dbgprintf("MasterPTY(%u): slave closed, my retains: %u, slave retains: %u\n", m_index, ref_count(), m_slave->ref_count()); dbg() << "MasterPTY(" << m_index << "): slave closed, my retains: " << ref_count() << ", slave retains: " << m_slave->ref_count();
#endif #endif
// +1 ref for my MasterPTY::m_slave // +1 ref for my MasterPTY::m_slave
// +1 ref for FileDescription::m_device // +1 ref for FileDescription::m_device