From 8465683dcf1ede4dbab46915113dd2ce4e4b7dfb Mon Sep 17 00:00:00 2001 From: asynts Date: Sat, 23 Jan 2021 23:59:27 +0100 Subject: Everywhere: Debug macros instead of constexpr. This was done with the following script: find . \( -name '*.cpp' -o -name '*.h' -o -name '*.in' \) -not -path './Toolchain/*' -not -path './Build/*' -exec sed -i -E 's/dbgln/dbgln<\U\1_DEBUG>/' {} \; find . \( -name '*.cpp' -o -name '*.h' -o -name '*.in' \) -not -path './Toolchain/*' -not -path './Build/*' -exec sed -i -E 's/if constexpr \(debug_([a-z0-9_]+)/if constexpr \(\U\1_DEBUG/' {} \; --- Userland/Libraries/LibCore/SyscallUtils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Userland/Libraries/LibCore/SyscallUtils.h') diff --git a/Userland/Libraries/LibCore/SyscallUtils.h b/Userland/Libraries/LibCore/SyscallUtils.h index 5815fb67cd..de14ffed23 100644 --- a/Userland/Libraries/LibCore/SyscallUtils.h +++ b/Userland/Libraries/LibCore/SyscallUtils.h @@ -42,9 +42,9 @@ inline int safe_syscall(Syscall syscall, Args&&... args) for (;;) { int sysret = syscall(forward(args)...); if (sysret == -1) { - if constexpr (debug_safe_syscall) { + if constexpr (SAFE_SYSCALL_DEBUG) { int saved_errno = errno; - dbgln("Core::safe_syscall: {} ({}: {})", sysret, saved_errno, strerror(saved_errno)); + dbgln("Core::safe_syscall: {} ({}: {})", sysret, saved_errno, strerror(saved_errno)); } if (errno == EINTR) -- cgit v1.2.3