From e78e6b5cb3b687215d131f7110529e037dcafd29 Mon Sep 17 00:00:00 2001 From: SUTER Frederic Date: Tue, 1 Feb 2022 12:14:12 +0100 Subject: [PATCH] please clang --- src/kernel/actor/SimcallObserver.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/kernel/actor/SimcallObserver.cpp b/src/kernel/actor/SimcallObserver.cpp index b15f77b3b5..b5f3a36d0b 100644 --- a/src/kernel/actor/SimcallObserver.cpp +++ b/src/kernel/actor/SimcallObserver.cpp @@ -233,9 +233,9 @@ std::string ActivityWaitSimcall::to_string(int times_considered) const if (comm == nullptr) return res; if (times_considered == -1) { - res += "WaitTimeout(comm=" + XBT_LOG_ISENABLED(mc_observer, xbt_log_priority_verbose) - ? xbt::string_printf("%p)", comm) - : "(verbose only))"; + res += "WaitTimeout(comm=" + (XBT_LOG_ISENABLED(mc_observer, xbt_log_priority_verbose) + ? xbt::string_printf("%p)", comm) + : "(verbose only))"); } else { res += "Wait(comm="; @@ -317,9 +317,10 @@ std::string ActivityWaitanySimcall::to_string(int times_considered) const size_t count = activities_.size(); if (count > 0) { if (auto* comm = dynamic_cast(activities_[times_considered])) - res += "comm=" + XBT_LOG_ISENABLED(mc_observer, xbt_log_priority_verbose) - ? xbt::string_printf("%p", comm) - : "(verbose only)" + xbt::string_printf("(%d of %zu))", times_considered + 1, count); + res += "comm=" + + (XBT_LOG_ISENABLED(mc_observer, xbt_log_priority_verbose) ? xbt::string_printf("%p", comm) + : "(verbose only)") + + xbt::string_printf("(%d of %zu))", times_considered + 1, count); } else res += "comm at idx " + std::to_string(times_considered) + ")"; return res; -- 2.20.1