From 98e49f0706ae0e521e0c564832f796d8ae92e0e9 Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Mon, 6 Jan 2020 10:18:29 -0800 Subject: [PATCH] mds: add hex indicator to printed feature flags Signed-off-by: Patrick Donnelly --- src/mds/mdstypes.cc | 1 + 1 file changed, 1 insertion(+) 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]; -- 2.39.5