Browse Source

PTYMultiplexer: Use dbg() instead of dbgprintf()

Liav A 5 years ago
parent
commit
ac9a001b92
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Kernel/TTY/PTYMultiplexer.cpp

+ 2 - 2
Kernel/TTY/PTYMultiplexer.cpp

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