]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: simplify output BlockExtent object 34019/head
authorChangcheng Liu <changcheng.liu@aliyun.com>
Wed, 18 Mar 2020 03:00:27 +0000 (11:00 +0800)
committerChangcheng Liu <changcheng.liu@aliyun.com>
Wed, 18 Mar 2020 14:19:10 +0000 (22:19 +0800)
Signed-off-by: Changcheng Liu <changcheng.liu@aliyun.com>
src/librbd/BlockGuard.h

index de1c0fcecc37fa89988e3f50c135167d6220dc73..2474e3c022abdd220259b3cf0e9fe50af52073f3 100644 (file)
@@ -71,8 +71,7 @@ public:
   int detain(const BlockExtent &block_extent, BlockOperation *block_operation,
              BlockGuardCell **cell) {
     std::lock_guard locker{m_lock};
-    ldout(m_cct, 20) << "[block_start=" << block_extent.block_start << ", "
-                     << "block_end=" << block_extent.block_end << "), "
+    ldout(m_cct, 20) << block_extent << ", "
                      << "free_slots=" << m_free_detained_block_extents.size()
                      << dendl;
 
@@ -116,10 +115,7 @@ public:
     ceph_assert(cell != nullptr);
     auto &detained_block_extent = reinterpret_cast<DetainedBlockExtent &>(
       *cell);
-    ldout(m_cct, 20) << "[block_start="
-                     << detained_block_extent.block_extent.block_start << ", "
-                     << "block_end="
-                     << detained_block_extent.block_extent.block_end << "), "
+    ldout(m_cct, 20) << detained_block_extent.block_extent << ", "
                      << "pending_ops="
                      << detained_block_extent.block_operations.size()
                      << dendl;