From 9ea701ae1d0004f2155cbd0aca391889e49eab4e Mon Sep 17 00:00:00 2001 From: Adam Kupczyk Date: Mon, 16 Jan 2023 13:32:59 +0000 Subject: [PATCH] os/bluestore: Better dout for bluestore_blob_t Add printing of len to operator<< for const bluestore_blob_t. Signed-off-by: Adam Kupczyk --- src/os/bluestore/bluestore_types.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/os/bluestore/bluestore_types.cc b/src/os/bluestore/bluestore_types.cc index 17a24af05eb6..f891e2a7bc12 100644 --- a/src/os/bluestore/bluestore_types.cc +++ b/src/os/bluestore/bluestore_types.cc @@ -720,6 +720,8 @@ ostream& operator<<(ostream& out, const bluestore_blob_t& o) << " -> 0x" << o.get_compressed_payload_length() << std::dec; + } else { + out << " llen=0x" << std::hex << o.get_logical_length() << std::dec; } if (o.flags) { out << " " << o.get_flags_string(); -- 2.47.3