ostream& operator<<(ostream& out, const bluestore_bdev_label_t& l)
{
return out << "bdev(osd_uuid " << l.osd_uuid
- << " size " << l.size
+ << " size 0x" << std::hex << l.size << std::dec
<< " btime " << l.btime
<< " desc " << l.description << ")";
}
for (auto p = m.ref_map.begin(); p != m.ref_map.end(); ++p) {
if (p != m.ref_map.begin())
out << ",";
- out << p->first << "~" << p->second.length << "=" << p->second.refs;
+ out << std::hex << "0x" << p->first << "~0x" << p->second.length << std::dec
+ << "=" << p->second.refs;
}
out << ")";
return out;
ostream& operator<<(ostream& out, const bluestore_overlay_t& o)
{
- out << "overlay(" << o.value_offset << "~" << o.length
- << " key " << o.key << ")";
+ out << "overlay(0x" << std::hex << o.value_offset << "~0x" << o.length
+ << std::dec << " key " << o.key << ")";
return out;
}
}
ostream& operator<<(ostream& out, const bluestore_pextent_t& o) {
- return out << o.offset << "~" << o.length;
+ return out << "0x" << std::hex << o.offset << "~0x" << o.length << std::dec;
}
void bluestore_pextent_t::generate_test_instances(list<bluestore_pextent_t*>& ls)
ostream& operator<<(ostream& out, const bluestore_blob_t& o)
{
out << "blob(" << o.extents
- << " len " << std::hex << o.length
+ << " len 0x" << std::hex << o.length << std::dec
<< " nref " << o.num_refs;
if (o.flags) {
out << " " << o.get_flags_string();
ostream& operator<<(ostream& out, const bluestore_lextent_t& lb)
{
- out << lb.offset << "~" << lb.length << "->" << lb.blob;
+ out << "0x" << std::hex << lb.offset << "~0x" << lb.length << std::dec
+ << "->" << lb.blob;
if (lb.flags)
out << ":" << bluestore_lextent_t::get_flags_string(lb.flags);
return out;