mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-13 06:15:33 +00:00
Fixed readv by commenting debug! statements
This commit is contained in:
parent
4b2abd631c
commit
0379668f27
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user