From 5fbb3fe0fdfdf731e46c9ef6a80de1d66a9d729c Mon Sep 17 00:00:00 2001 From: Augustin Degomme Date: Thu, 7 May 2020 10:54:10 +0200 Subject: [PATCH] try to print pointer correctly on sunos as well --- src/simix/smx_global.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/simix/smx_global.cpp b/src/simix/smx_global.cpp index 2f20481f40..7b83e7639f 100644 --- a/src/simix/smx_global.cpp +++ b/src/simix/smx_global.cpp @@ -250,9 +250,9 @@ void Global::display_all_actor_status() if (boost::dynamic_pointer_cast(actor->waiting_synchro) != nullptr) synchro_description = "I/O"; - XBT_INFO("Actor %ld (%s@%s): waiting for %s activity %p (%s) in state %d to finish", actor->get_pid(), + XBT_INFO("Actor %ld (%s@%s): waiting for %s activity %#zx (%s) in state %d to finish", actor->get_pid(), actor->get_cname(), actor->get_host()->get_cname(), synchro_description, - (xbt_log_no_loc ? (void*)0xDEADBEEF : actor->waiting_synchro.get()), name, + (xbt_log_no_loc ? (size_t)0xDEADBEEF : (size_t)actor->waiting_synchro.get()), name, (int)actor->waiting_synchro->state_); } else { XBT_INFO("Actor %ld (%s@%s)", actor->get_pid(), actor->get_cname(), actor->get_host()->get_cname()); -- 2.20.1