]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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)
committerNathan Cutler <ncutler@suse.com>
Mon, 27 Jan 2020 16:45:41 +0000 (17:45 +0100)
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 98e49f0706ae0e521e0c564832f796d8ae92e0e9)

src/mds/mdstypes.cc

index 60e705532d190c105c40dd4875f3568324c8befe..a55c85590af87e0df644c307388f16c7e33bfbf0 100644 (file)
@@ -433,6 +433,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];