Consistant message format (#4965)

This commit is contained in:
Jack May 2019-07-08 16:07:45 -08:00 committed by GitHub
parent 841e5e326c
commit 563c42b829
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -215,8 +215,8 @@ pub fn helper_sol_log_(
_context: &mut Option<Box<Any + 'static>>,
) -> u64 {
let ptr: *const u8 = addr as *const u8;
let message = unsafe { from_utf8(from_raw_parts(ptr, len as usize)) };
info!("sol_log: {:?}", message);
let message = unsafe { from_utf8(from_raw_parts(ptr, len as usize)).unwrap() };
info!("info: {:?}", message);
0
}
pub fn helper_sol_log_u64(