From 7ba1dead7d68a6b72932455781ba946b7546e588 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 9 Dec 2019 09:44:39 -0600 Subject: [PATCH] osd/PeeringState: use pg_vector_string for operator<< This shows NONE instead of a numeric CRUSH_ITEM_NONE. Signed-off-by: Sage Weil --- src/osd/PeeringState.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osd/PeeringState.cc b/src/osd/PeeringState.cc index ba3e33fb3bb..3528497fa7a 100644 --- a/src/osd/PeeringState.cc +++ b/src/osd/PeeringState.cc @@ -6950,9 +6950,9 @@ void PeeringState::PeeringMachine::log_exit(const char *state_name, utime_t ente ostream &operator<<(ostream &out, const PeeringState &ps) { out << "pg[" << ps.info - << " " << ps.up; + << " " << pg_vector_string(ps.up); if (ps.acting != ps.up) - out << "/" << ps.acting; + out << "/" << pg_vector_string(ps.acting); if (ps.is_ec_pg()) out << "p" << ps.get_primary(); if (!ps.async_recovery_targets.empty()) -- 2.39.5