]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mds: add hex indicator to printed feature flags
authorPatrick Donnelly <pdonnell@redhat.com>
Mon, 6 Jan 2020 18:18:29 +0000 (10:18 -0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Mon, 6 Jan 2020 18:18:29 +0000 (10:18 -0800)
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/mds/mdstypes.cc

index d044166883f039455a384ad73b187539a8b61350..67e96a75a4561497893bfc992eb0f5ddd3e77661 100644 (file)
@@ -434,6 +434,7 @@ void feature_bitset_t::decode(bufferlist::const_iterator &p) {
 void feature_bitset_t::print(ostream& out) const
 {
   std::ios_base::fmtflags f(out.flags());
+  out << "0x";
   for (int i = _vec.size() - 1; i >= 0; --i)
     out << std::setfill('0') << std::setw(sizeof(block_type) * 2)
         << std::hex << _vec[i];