Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Replace magic number 8.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sun, 14 Mar 2021 14:00:08 +0000 (15:00 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sun, 14 Mar 2021 22:02:55 +0000 (23:02 +0100)
src/xbt/log.cpp
src/xbt/log_private.hpp

index e795c7c..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) = {
index 95b525f..01967d8 100644 (file)
@@ -21,7 +21,7 @@ struct xbt_log_layout_s {
   void *data;
 };
 
-extern const std::array<const char*, 8> xbt_log_priority_names;
+extern const std::array<const char*, xbt_log_priority_infinite> xbt_log_priority_names;
 
 /**
  * @ingroup XBT_log_implem