From: Sage Weil Date: Tue, 14 Jul 2015 19:06:41 +0000 (-0400) Subject: hobject_t: pad hash to 8 digits X-Git-Tag: v9.1.0~346^2~52 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e50d2a7be6209ab951e52e259990f7cae8551d46;p=ceph.git hobject_t: pad hash to 8 digits Signed-off-by: Sage Weil --- diff --git a/src/common/hobject.cc b/src/common/hobject.cc index d241ee99fcc..8fbaf7a722f 100644 --- a/src/common/hobject.cc +++ b/src/common/hobject.cc @@ -201,7 +201,13 @@ ostream& operator<<(ostream& out, const hobject_t& o) if (o.is_max()) return out << "MAX"; out << o.pool << '/'; - out << std::hex << o.get_hash() << std::dec; + out << std::hex; + out.width(8); + out.fill('0'); + out << o.get_hash(); + out.width(0); + out.fill(' '); + out << std::dec; if (o.nspace.length()) out << ":" << o.nspace; if (o.get_key().length())