X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b8ba0bc2f48c6b9b96dfedd8fd383b941d5fdd0b..bac023bb1c1ebfc6909be7f4c1fd4927949eda1c:/src/gras/gras.c diff --git a/src/gras/gras.c b/src/gras/gras.c index 170275d896..b0a652dfdb 100644 --- a/src/gras/gras.c +++ b/src/gras/gras.c @@ -26,7 +26,7 @@ #include "portable.h" /* hexa_*(); signalling stuff */ XBT_LOG_NEW_DEFAULT_CATEGORY(gras, - "All GRAS categories (cf. section \ref GRAS_API)"); + "All GRAS categories (cf. section \\ref GRAS_API)"); static int gras_running_process = 0; #if defined(HAVE_SIGNAL) && defined(HAVE_SIGNAL_H) static void gras_sigusr_handler(int sig) @@ -52,15 +52,6 @@ static void gras_sigint_handler(int sig) } #endif -XBT_LOG_EXTERNAL_CATEGORY(gras_modules); -XBT_LOG_EXTERNAL_CATEGORY(gras_msg); -XBT_LOG_EXTERNAL_CATEGORY(gras_msg_read); -XBT_LOG_EXTERNAL_CATEGORY(gras_msg_rpc); -XBT_LOG_EXTERNAL_CATEGORY(gras_timer); -XBT_LOG_EXTERNAL_CATEGORY(gras_virtu); -XBT_LOG_EXTERNAL_CATEGORY(gras_virtu_emul); -XBT_LOG_EXTERNAL_CATEGORY(gras_virtu_process); - /** * @ingroup GRAS_API * \brief Initialize the gras mechanisms. @@ -70,12 +61,13 @@ void gras_init(int *argc, char **argv) int first = 0; gras_procdata_t *pd; gras_msg_procdata_t msg_pd; - XBT_VERB("Initialize GRAS"); xbt_getpid = gras_os_getpid; /* First initialize the XBT */ xbt_init(argc, argv); + XBT_VERB("Initialize GRAS"); + /* module registrations: * - declare process specific data we need (without creating them) */ @@ -95,6 +87,9 @@ void gras_init(int *argc, char **argv) XBT_LOG_CONNECT(gras_virtu_emul, gras_virtu); XBT_LOG_CONNECT(gras_virtu_process, gras_virtu); + if (!getenv("GRAS_NO_WARN_EXPERIMENTAL")) + XBT_WARN("GRAS is not well maintained anymore. We consider it to be experimental (and not stable anymore) since SimGrid 3.6. Sorry about it, please consider contributing to improve this situation"); + gras_trp_register(); gras_msg_register();