mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-12 22:05:33 +00:00
[___syscall5] debug messages
This commit is contained in:
parent
91587c8bde
commit
cc83ec9ac1
@ -120,13 +120,12 @@ pub fn ___syscall5(ctx: &mut Ctx, _which: c_int, mut varargs: VarArgs) -> c_int
|
||||
let _path_str = unsafe { std::ffi::CStr::from_ptr(real_path).to_str().unwrap() };
|
||||
let fd = unsafe { open(real_path, flags, mode) };
|
||||
debug!(
|
||||
"=> path: {}, flags: {}, mode: {} = fd: {}, last os error: {}",
|
||||
_path_str,
|
||||
flags,
|
||||
mode,
|
||||
fd,
|
||||
Error::last_os_error(),
|
||||
"=> path: {}, flags: {}, mode: {} = fd: {}",
|
||||
_path_str, flags, mode, fd,
|
||||
);
|
||||
if fd == -1 {
|
||||
debug!("=> last os error: {}", Error::last_os_error(),);
|
||||
}
|
||||
fd
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user