Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Improve debug information for waitany and testany requests.
authorcristianrosa <cristianrosa@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 20 Jan 2011 15:45:41 +0000 (15:45 +0000)
committercristianrosa <cristianrosa@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 20 Jan 2011 15:45:41 +0000 (15:45 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9462 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/mc/mc_dpor.c

index 920ee40..7b481c9 100644 (file)
@@ -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);
       /* 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);
       }
 
         xbt_free(req_str);
       }