]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: hex feature bits of 'ceph features' 17172/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 8 Aug 2017 07:14:55 +0000 (15:14 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 23 Aug 2017 02:28:34 +0000 (10:28 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
(cherry picked from commit b68f31aaca30a83f77ccf81191bf978a15dcbdbe)

src/mon/mon_types.h

index 9101776795a0943dbdab91d6f481e9efcf38ae77..ef1b90c1eb1db896ed345c4be8abf757e76e0526 100644 (file)
@@ -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);