Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fixed some issues in logs logic due to recent changes [Cristian]
[simgrid.git] / src / simix / smx_context.c
index 49758bf..7101a1a 100644 (file)
@@ -11,7 +11,7 @@
 #include "xbt/swag.h"
 #include "private.h"
 
-XBT_LOG_NEW_DEFAULT_SUBCATEGORY(smx_context, simix, "Context switching mecanism");
+XBT_LOG_NEW_DEFAULT_SUBCATEGORY(simix_context, simix, "Context switching mecanism");
 
 
 /**
@@ -73,7 +73,7 @@ int SIMIX_context_select_factory(const char *name)
   SIMIX_context_init_factory_by_name(&simix_global->context_factory, name);
 
   /* maestro process specialisation */
-  (*(simix_global->context_factory->create_maestro_context)) (&simix_global->maestro_process);
+  simix_global->maestro_process->context = SIMIX_context_create_maestro ();
 
   /* the current process is the process of the maestro */
   simix_global->current_process = simix_global->maestro_process;