]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: use fmtlib formatting for some OSD objects 41869/head
authorRonen Friedman <rfriedma@redhat.com>
Fri, 3 Sep 2021 05:00:23 +0000 (05:00 +0000)
committerRonen Friedman <rfriedma@redhat.com>
Tue, 7 Sep 2021 08:16:00 +0000 (08:16 +0000)
testing the newly added formatters.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/osd/PrimaryLogScrub.cc

index dd5aa84e8babf3eb83b8d3519849789024cd2261..fecbfea78f9dac80f25598469b950b346cf9fdd3 100644 (file)
@@ -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;
     }
   }
 }