Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
recv was still in DEBUG instead of VERB
authorsuter <suter@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 10 Nov 2010 14:44:55 +0000 (14:44 +0000)
committersuter <suter@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 10 Nov 2010 14:44:55 +0000 (14:44 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8521 48e7efb5-ca39-0410-a469-dd3cf9ba447f

examples/msg/actions/actions.c

index 0edf514..66a6478 100644 (file)
@@ -112,7 +112,7 @@ static void action_recv(xbt_dynar_t action)
   DEBUG1("Receiving: %s", name);
   MSG_task_receive(&task, mailbox_name);
   //  MSG_task_receive(&task, MSG_process_get_name(MSG_process_self()));
-  DEBUG2("%s %f", name, MSG_get_clock() - clock);
+  VERB2("%s %f", name, MSG_get_clock() - clock);
   MSG_task_destroy(task);
 
   if (XBT_LOG_ISENABLED(actions, xbt_log_priority_verbose))
@@ -469,8 +469,16 @@ static void allReduce(xbt_dynar_t action)
 
 static void comm_size(xbt_dynar_t action)
 {
+  char *name = NULL;
   char *size = xbt_dynar_get_as(action, 2, char *);
+  double clock = MSG_get_clock();
+
+  if (XBT_LOG_ISENABLED(actions, xbt_log_priority_verbose))
+    name = xbt_str_join(action, " ");
   communicator_size = parse_double(size);
+  VERB2("%s %f", name, MSG_get_clock() - clock);
+  if (XBT_LOG_ISENABLED(actions, xbt_log_priority_verbose))
+    free(name);
 }
 
 static void compute(xbt_dynar_t action)