From: Igor Fedotov Date: Tue, 23 Aug 2022 17:18:31 +0000 (+0300) Subject: os/bluestore: log values in hex in AvlAllocator X-Git-Tag: v18.2.8~10^2~264^2~13 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a1d7e675581691c66a55fbea84ff20efac78efc4;p=ceph.git os/bluestore: log values in hex in AvlAllocator Signed-off-by: Igor Fedotov --- diff --git a/src/os/bluestore/AvlAllocator.cc b/src/os/bluestore/AvlAllocator.cc index 949e037c1121..8de249e978cb 100644 --- a/src/os/bluestore/AvlAllocator.cc +++ b/src/os/bluestore/AvlAllocator.cc @@ -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; }