refactor (syscalls): removed debug logs when writing to stdout

This commit is contained in:
antifallobst 2023-05-02 00:44:01 +02:00
parent 18a0fc3eb7
commit 1101b83939
1 changed files with 1 additions and 2 deletions

View File

@ -50,6 +50,7 @@ void syscall_handle_nx_fread(cpu_state_T* state) {
case FILE_DESCRIPTOR_STDIN: { case FILE_DESCRIPTOR_STDIN: {
read_bytes = pipe_read(&process->stdin, mem, n); read_bytes = pipe_read(&process->stdin, mem, n);
state->rax = STATUS_SUCCESS;
break; break;
} }
@ -88,7 +89,6 @@ void syscall_handle_nx_fwrite(cpu_state_T* state) {
written_bytes = pipe_write(process->stderr, mem, n); written_bytes = pipe_write(process->stderr, mem, n);
} }
log(LOG_DEBUG, "Syscall (nx_fwrite) to stderr: %s", mem);
state->rax = STATUS_SUCCESS; state->rax = STATUS_SUCCESS;
break; break;
} }
@ -98,7 +98,6 @@ void syscall_handle_nx_fwrite(cpu_state_T* state) {
written_bytes = pipe_write(process->stdout, mem, n); written_bytes = pipe_write(process->stdout, mem, n);
} }
log(LOG_DEBUG, "Syscall (nx_fwrite) to stdout: %s", mem);
state->rax = STATUS_SUCCESS; state->rax = STATUS_SUCCESS;
break; break;
} }