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; }