Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use functions from ActorImpl when available.
[simgrid.git] / src / xbt / log.cpp
index 39dcfbe..5f37128 100644 (file)
@@ -39,7 +39,7 @@ static auto& xbt_log_settings()
   return value;
 }
 
-constexpr std::array<const char*, 8> xbt_log_priority_names{
+constexpr std::array<const char*, xbt_log_priority_infinite> xbt_log_priority_names{
     {"NONE", "TRACE", "DEBUG", "VERBOSE", "INFO", "WARNING", "ERROR", "CRITICAL"}};
 
 s_xbt_log_category_t _XBT_LOGV(XBT_LOG_ROOT_CAT) = {
@@ -205,7 +205,7 @@ static int fake_xbt_log_cat_init(xbt_log_category_t, e_xbt_log_priority_t)
   return 0;
 }
 #define DISABLE_XBT_LOG_CAT_INIT()                                                                                     \
-  int (*_xbt_log_cat_init)(xbt_log_category_t, e_xbt_log_priority_t) XBT_ATTRIB_UNUSED = fake_xbt_log_cat_init;
+  int (*_xbt_log_cat_init)(xbt_log_category_t, e_xbt_log_priority_t) XBT_ATTRIB_UNUSED = fake_xbt_log_cat_init
 
 static void _xbt_log_cat_apply_set(xbt_log_category_t category, const xbt_log_setting_t& setting)
 {