Merge pull request #4171 from majianpeng/cleanup

common: print hexadecimal for ghobject_t.generation.

Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2015-03-26 17:45:20 -07:00
commit 877d5d8820

View File

@ -292,7 +292,7 @@ ostream& operator<<(ostream& out, const ghobject_t& o)
if (o.generation != ghobject_t::NO_GEN ||
o.shard_id != shard_id_t::NO_SHARD) {
assert(o.shard_id != shard_id_t::NO_SHARD);
out << "/" << o.generation << "/" << (unsigned)(o.shard_id);
out << "/" << std::hex << o.generation << "/" << (unsigned)(o.shard_id) << std::dec;
}
return out;
}