Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cosmetics: fixing identation
[simgrid.git] / src / instr / smx_instr.c
index c95ac72..3d2870a 100644 (file)
@@ -16,10 +16,10 @@ void TRACE_smx_action_execute (smx_action_t act)
   if (!IS_TRACING) return;
 
   act->counter = counter++;
-  category = __TRACE_current_category_get (SIMIX_process_self());
+  category = __TRACE_category_get (SIMIX_process_self());
   if (category){
-       act->category = xbt_new (char, strlen (category)+1);
-       strncpy (act->category, category, strlen(category)+1);
+    act->category = xbt_new (char, strlen (category)+1);
+    strncpy (act->category, category, strlen(category)+1);
   }
 }
 
@@ -29,7 +29,7 @@ void TRACE_smx_action_communicate (smx_action_t act, smx_process_t proc)
   if (!IS_TRACING) return;
 
   act->counter = counter++;
-  category = __TRACE_current_category_get (proc);
+  category = __TRACE_category_get (proc);
   if (category){
     act->category = xbt_strdup (category);
   }