From: Ronen Friedman Date: Fri, 3 Sep 2021 05:00:23 +0000 (+0000) Subject: osd: use fmtlib formatting for some OSD objects X-Git-Tag: v17.1.0~900^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2f79c6a43cae5550bd18021acadd8d5aa0f45d86;p=ceph.git osd: use fmtlib formatting for some OSD objects testing the newly added formatters. Signed-off-by: Ronen Friedman --- diff --git a/src/osd/PrimaryLogScrub.cc b/src/osd/PrimaryLogScrub.cc index dd5aa84e8ba..fecbfea78f9 100644 --- a/src/osd/PrimaryLogScrub.cc +++ b/src/osd/PrimaryLogScrub.cc @@ -4,6 +4,7 @@ #include "PrimaryLogScrub.h" #include "common/scrub_types.h" +#include "osd/osd_types_fmt.h" #include "PeeringState.h" #include "PrimaryLogPG.h" @@ -576,12 +577,13 @@ void PrimaryLogScrub::stats_of_handled_objects(const object_stat_sum_t& delta_st // included when the scrubber gets to that object. if (is_primary() && is_scrub_active()) { if (soid < m_start) { - dout(20) << __func__ << " " << soid << " < [" << m_start << "," << m_end << ")" - << dendl; + + dout(20) << fmt::format("{} {} < [{},{})", __func__, soid, m_start, m_end) << dendl; m_scrub_cstat.add(delta_stats); + } else { - dout(25) << __func__ << " " << soid << " >= [" << m_start << "," << m_end << ")" - << dendl; + + dout(25) << fmt::format("{} {} >= [{},{})", __func__, soid, m_start, m_end) << dendl; } } }