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: v15.1.0~228^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=98e49f0706ae0e521e0c564832f796d8ae92e0e9;p=ceph-ci.git mds: add hex indicator to printed feature flags Signed-off-by: Patrick Donnelly --- diff --git a/src/mds/mdstypes.cc b/src/mds/mdstypes.cc index d044166883f..67e96a75a45 100644 --- a/src/mds/mdstypes.cc +++ b/src/mds/mdstypes.cc @@ -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];