os/bluestore: simplify blob print if !compressed

Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2016-10-13 15:22:24 -04:00
parent 62c12b70e2
commit 678be45532

View File

@ -557,11 +557,13 @@ ostream& operator<<(ostream& out, const bluestore_blob_t& o)
if (o.sbid) {
out << " sbid 0x" << std::hex << o.sbid << std::dec;
}
out << " clen 0x" << std::hex
<< o.compressed_length_orig
<< " -> 0x"
<< o.compressed_length
<< std::dec;
if (o.is_compressed()) {
out << " clen 0x" << std::hex
<< o.compressed_length_orig
<< " -> 0x"
<< o.compressed_length
<< std::dec;
}
if (o.flags) {
out << " " << o.get_flags_string();
}