From: Patrick Donnelly Date: Mon, 6 Jan 2020 18:18:29 +0000 (-0800) Subject: mds: add hex indicator to printed feature flags X-Git-Tag: v14.2.8~60^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0c7b930dedf8345797a206d7ac5f53da5c15527e;p=ceph.git mds: add hex indicator to printed feature flags Signed-off-by: Patrick Donnelly (cherry picked from commit 98e49f0706ae0e521e0c564832f796d8ae92e0e9) --- diff --git a/src/mds/mdstypes.cc b/src/mds/mdstypes.cc index 60e705532d1..a55c85590af 100644 --- a/src/mds/mdstypes.cc +++ b/src/mds/mdstypes.cc @@ -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];