From: xie xingguo Date: Tue, 8 Aug 2017 07:14:55 +0000 (+0800) Subject: mon: hex feature bits of 'ceph features' X-Git-Tag: v12.2.0~34^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F17172%2Fhead;p=ceph.git mon: hex feature bits of 'ceph features' Signed-off-by: xie xingguo (cherry picked from commit b68f31aaca30a83f77ccf81191bf978a15dcbdbe) --- diff --git a/src/mon/mon_types.h b/src/mon/mon_types.h index 9101776795a..ef1b90c1eb1 100644 --- a/src/mon/mon_types.h +++ b/src/mon/mon_types.h @@ -109,7 +109,9 @@ struct FeatureMap { f->open_object_section(ceph_entity_type_name(p.first)); for (auto& q : p.second) { f->open_object_section("group"); - f->dump_unsigned("features", q.first); + std::stringstream ss; + ss << "0x" << std::hex << q.first << std::dec; + f->dump_string("features", ss.str()); f->dump_string("release", ceph_release_name( ceph_release_from_features(q.first))); f->dump_unsigned("num", q.second);