1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:58:11 +00:00

PTYMultiplexer: Use dbg() instead of dbgprintf()

This commit is contained in:
Liav A 2020-02-25 01:01:17 +02:00 committed by Andreas Kling
parent a506b2a48e
commit ac9a001b92

View file

@ -64,7 +64,7 @@ KResultOr<NonnullRefPtr<FileDescription>> PTYMultiplexer::open(int options)
auto master_index = m_freelist.take_last();
auto master = adopt(*new MasterPTY(master_index));
#ifdef PTMX_DEBUG
dbgprintf("PTYMultiplexer::open: Vending master %u\n", master->index());
dbg() << "PTYMultiplexer::open: Vending master " << master->index();
#endif
auto description = FileDescription::create(move(master));
description->set_rw_mode(options);
@ -77,7 +77,7 @@ void PTYMultiplexer::notify_master_destroyed(Badge<MasterPTY>, unsigned index)
LOCKER(m_lock);
m_freelist.append(index);
#ifdef PTMX_DEBUG
dbgprintf("PTYMultiplexer: %u added to freelist\n", index);
dbg() << "PTYMultiplexer: " << index << " added to freelist";
#endif
}