Skip to content

Commit

Permalink
mon: hex feature bits of 'ceph features'
Browse files Browse the repository at this point in the history
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
  • Loading branch information
xiexingguo committed Aug 8, 2017
1 parent dda5480 commit 3eb45d5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mon/mon_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3eb45d5

Please sign in to comment.