From: Christophe ThiƩry Date: Fri, 14 Oct 2011 15:46:08 +0000 (+0200) Subject: Improve debug messages X-Git-Tag: exp_20120216~558^2~6 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/2a3f4b595b2fe9181ce2d338f0234f84b7aff58d Improve debug messages --- diff --git a/src/simix/smx_network.c b/src/simix/smx_network.c index 68d36ae49a..6b4922ff27 100644 --- a/src/simix/smx_network.c +++ b/src/simix/smx_network.c @@ -625,7 +625,9 @@ void SIMIX_comm_finish(smx_action_t action) case SIMIX_LINK_FAILURE: TRY { XBT_DEBUG("Link failure in action %p between '%s' and '%s': posting an exception to the issuer: %s (%p)", - action, action->comm.src_proc->smx_host->name, action->comm.dst_proc->smx_host->name, + action, + action->comm.src_proc ? action->comm.src_proc->smx_host->name : NULL, + action->comm.dst_proc ? action->comm.dst_proc->smx_host->name : NULL, req->issuer->name, req->issuer); THROWF(network_error, 0, "Link failure"); } diff --git a/src/simix/smx_smurf.c b/src/simix/smx_smurf.c index 6a65331648..bd82cea5d6 100644 --- a/src/simix/smx_smurf.c +++ b/src/simix/smx_smurf.c @@ -29,7 +29,8 @@ void SIMIX_request_push() void SIMIX_request_answer(smx_req_t req) { if (req->issuer != simix_global->maestro_process){ - XBT_DEBUG("Answer request %s (%d)", SIMIX_request_name(req->call), req->call); + XBT_DEBUG("Answer request %s (%d) issued by %s (%p)", SIMIX_request_name(req->call), req->call, + req->issuer->name, req->issuer); req->issuer->request.call = REQ_NO_REQ; xbt_dynar_push_as(simix_global->process_to_run, smx_process_t, req->issuer); }