mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-13 06:15:33 +00:00
Improved debug statements
Same commit as aba907cbc4
but without using the log debug macro (as causes fail)
This commit is contained in:
parent
da23efa99f
commit
a96c106b17
@ -3,7 +3,6 @@ use libc::{printf, putchar};
|
||||
|
||||
extern "C" fn _printf(memory_offset: i32, extra: i32, instance: &Instance) -> i32 {
|
||||
let mem = &instance.memories[0];
|
||||
println!("instance = {:?}", instance);
|
||||
return unsafe {
|
||||
let base_memory_offset = mem.mmap.as_ptr().offset(memory_offset as isize) as *const i8;
|
||||
printf(base_memory_offset, extra)
|
||||
|
@ -193,7 +193,7 @@ impl Instance {
|
||||
func_context
|
||||
.compile_and_emit(&*isa, &mut code_buf, &mut reloc_sink, &mut trap_sink)
|
||||
.map_err(|e| {
|
||||
println!("CompileError: {}", e.to_string());
|
||||
debug!("CompileError: {}", e.to_string());
|
||||
ErrorKind::CompileError(e.to_string())
|
||||
})?;
|
||||
// We set this code_buf to be readable & executable
|
||||
|
Loading…
Reference in New Issue
Block a user