]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore/cached_extent: minor adjustments to print
authorYingxin Cheng <yingxin.cheng@intel.com>
Mon, 18 Nov 2024 08:04:55 +0000 (16:04 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Thu, 28 Nov 2024 01:32:51 +0000 (09:32 +0800)
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
src/crimson/os/seastore/cached_extent.cc

index 76c18bde667a41e3848756c64d4fd3a9918f53f5..ffe89df44bde238365d48f255026080e5e5366d0 100644 (file)
@@ -94,15 +94,15 @@ CachedExtent* CachedExtent::get_transactional_view(transaction_id_t tid) {
 }
 
 std::ostream &operator<<(std::ostream &out, const parent_tracker_t &tracker) {
-  return out << "parent_tracker=" << (void*)&tracker
-            << ", parent=" << (void*)tracker.get_parent().get();
+  return out << "tracker_ptr=" << (void*)&tracker
+            << ", parent_ptr=" << (void*)tracker.get_parent().get();
 }
 
 std::ostream &ChildableCachedExtent::print_detail(std::ostream &out) const {
   if (parent_tracker) {
-    out << *parent_tracker;
+    out << ", parent_tracker(" << *parent_tracker << ")";
   } else {
-    out << ", parent_tracker=" << (void*)nullptr;
+    out << ", parent_tracker(nullptr)";
   }
   _print_detail(out);
   return out;