]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: fix blob operator<<
authorSage Weil <sage@redhat.com>
Fri, 6 May 2016 18:27:41 +0000 (14:27 -0400)
committerSage Weil <sage@redhat.com>
Wed, 1 Jun 2016 15:38:42 +0000 (11:38 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/bluestore_types.cc

index 8907f8148fb30eea573971e83fc45404c7b43992..f89974446ff387a8e8a27a2390476d041bfa3a3d 100644 (file)
@@ -479,9 +479,11 @@ void bluestore_blob_t::generate_test_instances(list<bluestore_blob_t*>& ls)
 ostream& operator<<(ostream& out, const bluestore_blob_t& o)
 {
   out << "blob(" << o.extents
-      << " len " << o.length
-      << " nref " << o.num_refs
-      << " " << o.get_flags_string();
+      << " len " << std::hex << o.length
+      << " nref " << o.num_refs;
+  if (o.flags) {
+    out << " " << o.get_flags_string();
+  }
   if (o.csum_type) {
     out << " csum " << o.get_csum_type_string(o.csum_type)
        << " order " << (int)o.csum_block_order;