1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:07:34 +00:00

Kernel: Put a bunch of debug spam behind #ifdefs.

This commit is contained in:
Andreas Kling 2019-03-27 15:07:12 +01:00
parent 56f7b392c1
commit 44e1e7423f
5 changed files with 22 additions and 2 deletions

View file

@ -3,6 +3,8 @@
#include "DevPtsFS.h"
#include <Kernel/Process.h>
//#define SLAVEPTY_DEBUG
SlavePTY::SlavePTY(MasterPTY& master, unsigned index)
: TTY(11, index)
, m_master(master)
@ -16,7 +18,9 @@ SlavePTY::SlavePTY(MasterPTY& master, unsigned index)
SlavePTY::~SlavePTY()
{
#ifdef SLAVEPTY_DEBUG
dbgprintf("~SlavePTY(%u)\n", m_index);
#endif
DevPtsFS::the().unregister_slave_pty(*this);
}