X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/595e59c568ff5f8510de201bfd800951cdc2adcb..e2f2a59f2531219ab56c998d0379c3f6b6936a5c:/src/mc/mc_config.cpp diff --git a/src/mc/mc_config.cpp b/src/mc/mc_config.cpp index 621f502785..8ef5d0ba8f 100644 --- a/src/mc/mc_config.cpp +++ b/src/mc/mc_config.cpp @@ -20,8 +20,7 @@ #include "src/mc/mc_record.h" -XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_config, mc, - "Configuration of MC"); +XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_config, mc, "Configuration of the Model Checker"); #if SIMGRID_HAVE_MC namespace simgrid { @@ -40,7 +39,7 @@ int _sg_mc_timeout = 0; void _mc_cfg_cb_timeout(const char *name) { - if (_sg_cfg_init_status && !(_sg_do_model_check || MC_record_path)) + if (_sg_cfg_init_status && not(_sg_do_model_check || MC_record_path)) xbt_die("You are specifying a value to enable/disable timeout for wait requests after the initialization (through MSG_config?), but model-checking was not activated at config time (through bu the program was not runned under the model-checker (with simgrid-mc)). This won't work, sorry."); _sg_mc_timeout = xbt_cfg_get_boolean(name); @@ -69,9 +68,9 @@ void _mc_cfg_cb_reduce(const char *name) ("You are specifying a reduction strategy after the initialization (through MSG_config?), but model-checking was not activated at config time (through bu the program was not runned under the model-checker (with simgrid-mc)). This won't work, sorry."); char *val = xbt_cfg_get_string(name); - if (!strcasecmp(val, "none")) + if (not strcasecmp(val, "none")) simgrid::mc::reduction_mode = simgrid::mc::ReductionMode::none; - else if (!strcasecmp(val, "dpor")) + else if (not strcasecmp(val, "dpor")) simgrid::mc::reduction_mode = simgrid::mc::ReductionMode::dpor; else xbt_die("configuration option %s can only take 'none' or 'dpor' as a value",