Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Improve debugging messages when dispaying the status of blocked process.
authorArnaud Legrand <arnaud.legrand@imag.fr>
Sun, 22 May 2011 19:23:25 +0000 (12:23 -0700)
committerArnaud Legrand <arnaud.legrand@imag.fr>
Thu, 8 Sep 2011 13:48:05 +0000 (15:48 +0200)
src/simix/smx_global.c

index 2cb2b39..abc2281 100644 (file)
@@ -325,6 +325,8 @@ void SIMIX_display_process_status(void)
 
   XBT_INFO("%d processes are still running, waiting for something.", nbprocess);
   /*  List the process and their state */
+  XBT_INFO
+    ("Legend of the following listing: \"<process>(<pid>) on <host>: <status>.\"");
   xbt_swag_foreach(process, simix_global->process_list) {
 
     if (process->waiting_action) {
@@ -356,8 +358,8 @@ void SIMIX_display_process_status(void)
          action_description = "I/O";
          break;
       }
-      XBT_INFO("Process %ld (%s@%s): waiting for %s action %p to finish", process->pid, process->name, process->smx_host->name,
-         action_description, process->waiting_action);
+      XBT_INFO("Process %ld (%s@%s): waiting for %s action %p (%s) to finish", process->pid, process->name, process->smx_host->name,
+         action_description, process->waiting_action, process->waiting_action->name);
     }
   }
 }