From 2a3f4b595b2fe9181ce2d338f0234f84b7aff58d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christophe=20Thi=C3=A9ry?= Date: Fri, 14 Oct 2011 17:46:08 +0200 Subject: [PATCH] Improve debug messages --- src/simix/smx_network.c | 4 +++- src/simix/smx_smurf.c | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) 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); } -- 2.20.1