]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: log values in hex in AvlAllocator
authorIgor Fedotov <ifedotov@suse.com>
Tue, 23 Aug 2022 17:18:31 +0000 (20:18 +0300)
committerIgor Fedotov <igor.fedotov@croit.io>
Mon, 19 Dec 2022 08:08:47 +0000 (11:08 +0300)
Signed-off-by: Igor Fedotov <igor.fedotov@croit.io>
src/os/bluestore/AvlAllocator.cc

index 9d828ee313ce94ad37cd347f71a216b4a3bb6a73..317291e65f491c86f8030d3acd7d2770f20d75da 100644 (file)
@@ -293,12 +293,16 @@ int AvlAllocator::_allocate(
     ceph_assert(align != 0);
     uint64_t* cursor = &lbas[cbits(align) - 1];
     start = _pick_block_after(cursor, size, unit);
-    dout(20) << __func__ << " first fit=" << start << " size=" << size << dendl;
+    dout(20) << __func__
+             << std::hex << " first fit params: 0x" << start << "~" << size
+             << std::dec << dendl;
   }
   if (start == -1ULL) {
     do {
       start = _pick_block_fits(size, unit);
-      dout(20) << __func__ << " best fit=" << start << " size=" << size << dendl;
+      dout(20) << __func__
+               << std::hex << " best fit params: 0x" << start << "~" << size
+               << std::dec << dendl;
       if (start != uint64_t(-1ULL)) {
         break;
       }