From 0379668f27893f7800471019f71c043f3af84934 Mon Sep 17 00:00:00 2001 From: Syrus Akbary Date: Sat, 1 Dec 2018 16:26:17 -0800 Subject: [PATCH] Fixed readv by commenting debug! statements --- src/apis/emscripten/syscalls.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/apis/emscripten/syscalls.rs b/src/apis/emscripten/syscalls.rs index c81886147..10ada094c 100644 --- a/src/apis/emscripten/syscalls.rs +++ b/src/apis/emscripten/syscalls.rs @@ -572,14 +572,14 @@ pub extern "C" fn ___syscall145( let guest_iov_addr = instance.memory_offset_addr(0, (iov + i*8) as usize) as *mut GuestIovec; let iov_base = instance.memory_offset_addr(0, (*guest_iov_addr).iov_base as usize) as *mut c_void; let iov_len: usize = (*guest_iov_addr).iov_len as _; - debug!("=> iov_addr: {:?}, {:?}", iov_base, iov_len); + // debug!("=> iov_addr: {:?}, {:?}", iov_base, iov_len); let curr = read(fd, iov_base, iov_len); if curr < 0 { return -1 } ret = ret + curr; } - debug!(" => ret: {}", ret); + // debug!(" => ret: {}", ret); return ret } } @@ -615,7 +615,7 @@ pub extern "C" fn ___syscall146( } ret = ret + curr; } - debug!(" => ret: {}", ret); + // debug!(" => ret: {}", ret); return ret } }