mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 17:07:35 +00:00
Kernel: Put fcntl() debug spam behind DEBUG_IO
This commit is contained in:
parent
45e7c2ba69
commit
ca609ce5a3
1 changed files with 2 additions and 0 deletions
|
@ -1512,7 +1512,9 @@ int Process::sys$fcntl(int fd, int cmd, u32 arg)
|
||||||
REQUIRE_PROMISE(stdio);
|
REQUIRE_PROMISE(stdio);
|
||||||
(void)cmd;
|
(void)cmd;
|
||||||
(void)arg;
|
(void)arg;
|
||||||
|
#ifdef DEBUG_IO
|
||||||
dbgprintf("sys$fcntl: fd=%d, cmd=%d, arg=%u\n", fd, cmd, arg);
|
dbgprintf("sys$fcntl: fd=%d, cmd=%d, arg=%u\n", fd, cmd, arg);
|
||||||
|
#endif
|
||||||
auto description = file_description(fd);
|
auto description = file_description(fd);
|
||||||
if (!description)
|
if (!description)
|
||||||
return -EBADF;
|
return -EBADF;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue