From 32dfde746abc62d2216e5e5e2d0df08e33c02ff0 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 22 Jun 2020 21:19:10 +0200 Subject: [PATCH] LibCore: Put safe_syscall() debug spam behind #ifdef --- Libraries/LibCore/SyscallUtils.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Libraries/LibCore/SyscallUtils.h b/Libraries/LibCore/SyscallUtils.h index 59b7d76b08..1c24efd9c2 100644 --- a/Libraries/LibCore/SyscallUtils.h +++ b/Libraries/LibCore/SyscallUtils.h @@ -41,8 +41,10 @@ inline int safe_syscall(Syscall syscall, Args&&... args) for (;;) { int sysret = syscall(forward(args)...); if (sysret == -1) { +#ifdef SAFE_SYSCALL_DEBUG int saved_errno = errno; dbg() << "Core::safe_syscall: " << sysret << " (" << saved_errno << ": " << strerror(saved_errno) << ")"; +#endif if (errno == EINTR) continue; ASSERT_NOT_REACHED();