From 0da34de380863cbdffaeb436d142918fdc6931cc Mon Sep 17 00:00:00 2001 From: Caio Date: Thu, 26 Sep 2019 17:21:12 -0300 Subject: [PATCH] Pointer does not implement Display (#3707) Instead, use `Debug` for `debug_trace!` --- substrate/core/executor/src/wasm_executor.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/substrate/core/executor/src/wasm_executor.rs b/substrate/core/executor/src/wasm_executor.rs index 9f8d678d1a..bfd33f0f16 100644 --- a/substrate/core/executor/src/wasm_executor.rs +++ b/substrate/core/executor/src/wasm_executor.rs @@ -369,13 +369,13 @@ impl_wasm_host_interface! { impl SubstrateExternals where context { ext_malloc(size: WordSize) -> Pointer { let r = context.allocate_memory(size)?; - debug_trace!(target: "sr-io", "malloc {} bytes at {}", size, r); + debug_trace!(target: "sr-io", "malloc {} bytes at {:?}", size, r); Ok(r) } ext_free(addr: Pointer) { context.deallocate_memory(addr)?; - debug_trace!(target: "sr-io", "free {}", addr); + debug_trace!(target: "sr-io", "free {:?}", addr); Ok(()) }