From 1101b83939da2837cdcd59320dac63e77d5f7688 Mon Sep 17 00:00:00 2001 From: antifallobst Date: Tue, 2 May 2023 00:44:01 +0200 Subject: [PATCH] refactor (syscalls): removed debug logs when writing to stdout --- src/platform/syscall.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/platform/syscall.c b/src/platform/syscall.c index 367ace4..bccc3a5 100644 --- a/src/platform/syscall.c +++ b/src/platform/syscall.c @@ -50,6 +50,7 @@ void syscall_handle_nx_fread(cpu_state_T* state) { case FILE_DESCRIPTOR_STDIN: { read_bytes = pipe_read(&process->stdin, mem, n); + state->rax = STATUS_SUCCESS; break; } @@ -88,7 +89,6 @@ void syscall_handle_nx_fwrite(cpu_state_T* state) { written_bytes = pipe_write(process->stderr, mem, n); } - log(LOG_DEBUG, "Syscall (nx_fwrite) to stderr: %s", mem); state->rax = STATUS_SUCCESS; break; } @@ -98,7 +98,6 @@ void syscall_handle_nx_fwrite(cpu_state_T* state) { written_bytes = pipe_write(process->stdout, mem, n); } - log(LOG_DEBUG, "Syscall (nx_fwrite) to stdout: %s", mem); state->rax = STATUS_SUCCESS; break; }