LibCore: Put safe_syscall() debug spam behind #ifdef
This commit is contained in:
parent
79d3c5723f
commit
32dfde746a
Notes:
sideshowbarker
2024-07-19 05:26:41 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/32dfde746ab
1 changed files with 2 additions and 0 deletions
|
@ -41,8 +41,10 @@ inline int safe_syscall(Syscall syscall, Args&&... args)
|
|||
for (;;) {
|
||||
int sysret = syscall(forward<Args>(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();
|
||||
|
|
Loading…
Add table
Reference in a new issue