Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Do not print pointers (%p) when using INFO. This kind of output is system dependant...
authoralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 21 May 2008 09:44:55 +0000 (09:44 +0000)
committeralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 21 May 2008 09:44:55 +0000 (09:44 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5480 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/simix/smx_global.c

index c797d56..51e8050 100644 (file)
@@ -153,18 +153,18 @@ void SIMIX_display_process_status(void)
             : ((process->simdata->suspended) ? "[SUSPENDED] " : ""));
 
     if (p_simdata->mutex) {
             : ((process->simdata->suspended) ? "[SUSPENDED] " : ""));
 
     if (p_simdata->mutex) {
-      who2 = bprintf("%s Blocked on mutex %p", who, p_simdata->mutex);
+      who2 = bprintf("%s Blocked on mutex %p", who, (XBT_LOG_ISENABLED(simix_kernel,xbt_log_priority_verbose))?p_simdata->mutex:NULL);
       free(who);
       who = who2;
     } else if (p_simdata->cond) {
       who2 =
          bprintf
          ("%s Blocked on condition %p; Waiting for the following actions:",
       free(who);
       who = who2;
     } else if (p_simdata->cond) {
       who2 =
          bprintf
          ("%s Blocked on condition %p; Waiting for the following actions:",
-          who, p_simdata->cond);
+          who, (XBT_LOG_ISENABLED(simix_kernel,xbt_log_priority_verbose))?p_simdata->cond:NULL);
       free(who);
       who = who2;
       xbt_fifo_foreach(p_simdata->cond->actions, item, act, smx_action_t) {
       free(who);
       who = who2;
       xbt_fifo_foreach(p_simdata->cond->actions, item, act, smx_action_t) {
-       who2 = bprintf("%s '%s'(%p)", who, act->name,act);
+       who2 = bprintf("%s '%s'(%p)", who, act->name,(XBT_LOG_ISENABLED(simix_kernel,xbt_log_priority_verbose))?act:NULL);
        free(who);
        who = who2;
       }
        free(who);
        who = who2;
       }