Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Don't use XBT_LOG macros within a function (thanks lgtm for noticing)
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Sun, 24 May 2020 22:13:41 +0000 (00:13 +0200)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Mon, 25 May 2020 11:22:40 +0000 (13:22 +0200)
src/xbt/config.cpp

index b689db3..8d05c90 100644 (file)
@@ -323,16 +323,15 @@ void Config::alias(const std::string& realname, const std::string& aliasname)
  */
 void Config::dump(const char *name, const char *indent)
 {
-  XBT_LOG_DEFAULT_CATEGORY(xbt_help);
   if (name)
-    XBT_VERB("%s>> Dumping of the config set '%s':", indent, name);
+    XBT_CVERB(xbt_help, "%s>> Dumping of the config set '%s':", indent, name);
 
   for (auto const& elm : options)
-    XBT_VERB("%s  %s: ()%s) %s", indent, elm.first.c_str(), elm.second->get_type_name(),
-             elm.second->get_string_value().c_str());
+    XBT_CVERB(xbt_help, "%s  %s: ()%s) %s", indent, elm.first.c_str(), elm.second->get_type_name(),
+              elm.second->get_string_value().c_str());
 
   if (name)
-    XBT_VERB("%s<< End of the config set '%s'", indent, name);
+    XBT_CVERB(xbt_help, "%s<< End of the config set '%s'", indent, name);
 }
 
 /** @brief Displays the declared aliases and their replacement */