]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore/bluestore_types: nicer operator<< for blob_t
authorSage Weil <sage@redhat.com>
Sat, 14 May 2016 12:31:24 +0000 (08:31 -0400)
committerSage Weil <sage@redhat.com>
Wed, 1 Jun 2016 15:38:46 +0000 (11:38 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/bluestore_types.cc

index 7669e0afd6bb918e2eac49a921d96865026cd4fd..5256b694726fb58888ea69bfe9aea86750014239 100644 (file)
@@ -511,8 +511,8 @@ ostream& operator<<(ostream& out, const bluestore_blob_t& o)
     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;
+    out << " " << o.get_csum_type_string(o.csum_type)
+       << "/0x" << std::hex << (1ull << o.csum_block_order) << std::dec;
   }
   if (!o.ref_map.empty()) {
     out << " " << o.ref_map;