]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: Better dout for bluestore_blob_t
authorAdam Kupczyk <akupczyk@ibm.com>
Mon, 16 Jan 2023 13:32:59 +0000 (13:32 +0000)
committerAdam Kupczyk <akupczyk@ibm.com>
Thu, 11 May 2023 06:52:45 +0000 (06:52 +0000)
Add printing of len to operator<< for const bluestore_blob_t.

Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
src/os/bluestore/bluestore_types.cc

index 17a24af05eb66782278d433ef3a49aa262d8ade5..f891e2a7bc129a8bf1836ce8bdcfeab6923e2dc8 100644 (file)
@@ -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();