From ca609ce5a3e33710ccef7d0d26b2f5725e54c4da Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 12 Jan 2020 09:59:04 +0100 Subject: [PATCH] Kernel: Put fcntl() debug spam behind DEBUG_IO --- Kernel/Process.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp index 44043f6b2e..aeb3b25f7c 100644 --- a/Kernel/Process.cpp +++ b/Kernel/Process.cpp @@ -1512,7 +1512,9 @@ int Process::sys$fcntl(int fd, int cmd, u32 arg) REQUIRE_PROMISE(stdio); (void)cmd; (void)arg; +#ifdef DEBUG_IO dbgprintf("sys$fcntl: fd=%d, cmd=%d, arg=%u\n", fd, cmd, arg); +#endif auto description = file_description(fd); if (!description) return -EBADF;