Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Chord: update some messages displayed
[simgrid.git] / examples / msg / tracing / categories.c
index 8a12f81..400de0a 100644 (file)
@@ -83,6 +83,13 @@ MSG_error_t test_all(const char *platform_file,
     MSG_set_channel_number(0);
     MSG_create_environment(platform_file);
   }
+  {
+    //declaring user categories with RGB colors
+    TRACE_category_with_color ("compute", "1 0 0"); //red
+    TRACE_category_with_color ("request", "0 1 0"); //green
+    TRACE_category_with_color ("data", "0 0 1");    //blue
+    TRACE_category_with_color ("finalize", "0 0 0");//black
+  }
   {                             /*   Application deployment */
     MSG_function_register("master", master);
     MSG_function_register("slave", slave);
@@ -90,7 +97,7 @@ MSG_error_t test_all(const char *platform_file,
   }
   res = MSG_main();
 
-  INFO1("Simulation time %g", MSG_get_clock());
+  XBT_INFO("Simulation time %g", MSG_get_clock());
   return res;
 }
 
@@ -107,12 +114,6 @@ int main(int argc, char *argv[])
     exit(1);
   }
 
-  //declaring user categories with RGB colors
-  TRACE_category_with_color ("compute", "1 0 0"); //red
-  TRACE_category_with_color ("request", "0 1 0"); //green
-  TRACE_category_with_color ("data", "0 0 1");    //blue
-  TRACE_category_with_color ("finalize", "0 0 0");//black
-
   res = test_all(argv[1], argv[2]);
   MSG_clean();