Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
That's debugging, not verbose working
[simgrid.git] / src / gras / Msg / msg.c
index e8f1773..ec047a4 100644 (file)
@@ -365,7 +365,7 @@ static int gras_msg_wait_or_filter(gras_msg_t msg, void *ctx) {
   xbt_dynar_t dyn=(xbt_dynar_t)ctx;
   int res =  xbt_dynar_member(dyn,msg->type);
   if (res)
-    VERB0("Got matching message");
+    VERB1("Got matching message (type=%s)",msg->type->name);
   else
     VERB0("Got message not matching our expectations");
   return res;
@@ -392,7 +392,7 @@ void gras_msg_wait_or(double         timeout,
                       void          *payload) {
   s_gras_msg_t msg;
 
-  INFO1("Wait %f seconds for several message types",timeout);
+  VERB1("Wait %f seconds for several message types",timeout);
   gras_msg_wait_ext(timeout,
                    NULL, NULL,      
                    &gras_msg_wait_or_filter, (void*)msgt_want,
@@ -590,8 +590,8 @@ gras_msg_handle(double timeOut) {
     TRY {
       xbt_dynar_foreach(list->cbs,cpt,cb) { 
        if (!ran_ok) {
-         VERB3("Use the callback #%d (@%p) for incomming msg %s",
-               cpt+1,cb,msg.type->name);
+         DEBUG4("Use the callback #%d (@%p) for incomming msg %s (payload_size=%d)",
+               cpt+1,cb,msg.type->name,msg.payl_size);
          if ((*cb)(&ctx,msg.payl)) {
            /* cb handled the message */
            free(msg.payl);