summaryrefslogtreecommitdiff
path: root/Kernel/TTY/SlavePTY.cpp
diff options
context:
space:
mode:
authorasynts <asynts@gmail.com>2021-01-15 00:18:55 +0100
committerAndreas Kling <kling@serenityos.org>2021-01-22 22:14:30 +0100
commit7b0a1a98d9edc5ae91df9138b695fb2bb3ead4b7 (patch)
tree460a80e34939ad908e27412bd123d733866784a2 /Kernel/TTY/SlavePTY.cpp
parenta348ab55b038386bd2d0acc0c8de1c8927de12fe (diff)
downloadserenity-7b0a1a98d9edc5ae91df9138b695fb2bb3ead4b7.zip
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.
Diffstat (limited to 'Kernel/TTY/SlavePTY.cpp')
-rw-r--r--Kernel/TTY/SlavePTY.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/Kernel/TTY/SlavePTY.cpp b/Kernel/TTY/SlavePTY.cpp
index 8d74137d69..a4704616dd 100644
--- a/Kernel/TTY/SlavePTY.cpp
+++ b/Kernel/TTY/SlavePTY.cpp
@@ -26,11 +26,10 @@
#include "SlavePTY.h"
#include "MasterPTY.h"
+#include <AK/Debug.h>
#include <Kernel/FileSystem/DevPtsFS.h>
#include <Kernel/Process.h>
-//#define SLAVEPTY_DEBUG
-
namespace Kernel {
SlavePTY::SlavePTY(MasterPTY& master, unsigned index)
@@ -48,9 +47,7 @@ SlavePTY::SlavePTY(MasterPTY& master, unsigned index)
SlavePTY::~SlavePTY()
{
-#ifdef SLAVEPTY_DEBUG
- dbg() << "~SlavePTY(" << m_index << ")";
-#endif
+ dbgln<debug_slavepty>("~SlavePTY({})", m_index);
DevPtsFS::unregister_slave_pty(*this);
}