]> git.apps.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)
committerJoshua Baergen <jbaergen@digitalocean.com>
Wed, 9 Apr 2025 19:39:02 +0000 (13:39 -0600)
Signed-off-by: Igor Fedotov <igor.fedotov@croit.io>
src/os/bluestore/AvlAllocator.cc

index 949e037c1121a68bc90fbb0b353700f3d6fc1508..8de249e978cbe325e57cb2f2e20c8a01d744f66f 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;
       }