From 72d9e4c1e754a954e32b901f744a1f334bfad4d2 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Thu, 5 Dec 2024 14:06:16 +0200 Subject: [PATCH] Kernel: Remove accidental debug prints from fcntl syscall --- kernel/kernel/OpenFileDescriptorSet.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/kernel/kernel/OpenFileDescriptorSet.cpp b/kernel/kernel/OpenFileDescriptorSet.cpp index 123d5728..5b7c5fe6 100644 --- a/kernel/kernel/OpenFileDescriptorSet.cpp +++ b/kernel/kernel/OpenFileDescriptorSet.cpp @@ -202,8 +202,6 @@ namespace Kernel { TRY(validate_fd(fd)); - dprintln("fcntl({} ('{}'), {}, {H})", fd, m_open_files[fd]->path(), cmd, extra); - switch (cmd) { case F_GETFD: @@ -211,14 +209,12 @@ namespace Kernel case F_SETFD: m_open_files[fd]->flags &= ~FD_CLOEXEC; m_open_files[fd]->flags |= extra & FD_CLOEXEC; - dprintln(" set CLOEXEC to {}", !!(m_open_files[fd]->flags & FD_CLOEXEC)); return 0; case F_GETFL: return m_open_files[fd]->flags & ~(O_APPEND | O_DSYNC | O_NONBLOCK | O_RSYNC | O_SYNC | O_ACCMODE); case F_SETFL: m_open_files[fd]->flags &= ~O_NONBLOCK; m_open_files[fd]->flags |= extra & O_NONBLOCK; - dprintln(" set NONBLOCK to {}", !!(m_open_files[fd]->flags & O_NONBLOCK)); return 0; default: break;