From b060185506092d4d37bc605840b8e7f028cc81ab Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Mon, 25 May 2020 00:13:41 +0200 Subject: [PATCH] Don't use XBT_LOG macros within a function (thanks lgtm for noticing) --- src/xbt/config.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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 */ -- 2.20.1