summaryrefslogtreecommitdiff
path: root/kernel/src/arch/x86_64/syscalls/file.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/src/arch/x86_64/syscalls/file.cpp')
-rw-r--r--kernel/src/arch/x86_64/syscalls/file.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/src/arch/x86_64/syscalls/file.cpp b/kernel/src/arch/x86_64/syscalls/file.cpp
index a25bf61..c1a1500 100644
--- a/kernel/src/arch/x86_64/syscalls/file.cpp
+++ b/kernel/src/arch/x86_64/syscalls/file.cpp
@@ -48,7 +48,7 @@ syscall_ret_t sys_openat(int dirfd, const char* path, int flags, int_frame_t* ct
memset(result,0,2048);
vfs::resolve_path(kpath,first_path,result,1,0);
- //DEBUG(1,"Trying to open %s from proc %d",result,proc->id);
+ DEBUG(0,"Trying to open %s from proc %d",result,proc->id);
if(result[0] == '\0') {
result[0] = '/';
@@ -245,6 +245,8 @@ syscall_ret_t sys_close(int fd) {
else if(fd < 3 && !fd_s)
return {0,0,0}; // ignoring
+ DEBUG(0,"Closing %s\n",fd_s->path);
+
if(fd_s->can_be_closed)
return {0,EBADF,0};