From: Martin Quinson Date: Sun, 24 May 2020 22:13:41 +0000 (+0200) Subject: Don't use XBT_LOG macros within a function (thanks lgtm for noticing) X-Git-Tag: v3.26~586 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/b060185506092d4d37bc605840b8e7f028cc81ab Don't use XBT_LOG macros within a function (thanks lgtm for noticing) --- diff --git a/src/xbt/config.cpp b/src/xbt/config.cpp index b689db3738..8d05c901dd 100644 --- a/src/xbt/config.cpp +++ b/src/xbt/config.cpp @@ -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 */