diff options
author | Igor Fedotov <ifedotov@suse.com> | 2022-08-23 19:18:31 +0200 |
---|---|---|
committer | Igor Fedotov <igor.fedotov@croit.io> | 2022-12-19 09:08:47 +0100 |
commit | 5b6be4565f5f2eae2b31a53b3d62837c5c213228 (patch) | |
tree | 221b1721e7df840677a905e02e2763cd8c5ef5fb /src/os/bluestore/AvlAllocator.cc | |
parent | os/bluestore: assert on improper releases in AvlAllocator (diff) | |
download | ceph-5b6be4565f5f2eae2b31a53b3d62837c5c213228.tar.xz ceph-5b6be4565f5f2eae2b31a53b3d62837c5c213228.zip |
os/bluestore: log values in hex in AvlAllocator
Signed-off-by: Igor Fedotov <igor.fedotov@croit.io>
Diffstat (limited to 'src/os/bluestore/AvlAllocator.cc')
-rw-r--r-- | src/os/bluestore/AvlAllocator.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/os/bluestore/AvlAllocator.cc b/src/os/bluestore/AvlAllocator.cc index 9d828ee313c..317291e65f4 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; } |