From: cristianrosa Date: Thu, 20 Jan 2011 15:45:41 +0000 (+0000) Subject: Improve debug information for waitany and testany requests. X-Git-Tag: v3.6_beta2~467 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/1cdf3f70bf6eb8ce6c39995cb95152a63328c6dc?ds=sidebyside Improve debug information for waitany and testany requests. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9462 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/mc/mc_dpor.c b/src/mc/mc_dpor.c index 920ee40df6..7b481c9305 100644 --- a/src/mc/mc_dpor.c +++ b/src/mc/mc_dpor.c @@ -80,7 +80,12 @@ void MC_dpor(void) /* Debug information */ if(XBT_LOG_ISENABLED(mc_dpor, xbt_log_priority_debug)){ req_str = MC_request_to_string(req); - DEBUG2("Execute: %s (%u)", req_str, value); + if(req->call == REQ_COMM_WAITANY) + DEBUG3("Execute: %s (%u of %lu)", req_str, value, xbt_dynar_length(req->comm_waitany.comms)); + else if(req->call == REQ_COMM_TESTANY) + DEBUG3("Execute: %s (%u of %lu)", req_str, value, xbt_dynar_length(req->comm_testany.comms)); + else + DEBUG1("Execute: %s", req_str); xbt_free(req_str); }