From ce5d84d1fa4eaea8618b759bde446397f3336191 Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Tue, 27 Aug 2024 23:03:33 -0400 Subject: [PATCH] osdc: add print method for Journaler::Header For dout prints. Signed-off-by: Patrick Donnelly --- src/osdc/Journaler.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/osdc/Journaler.h b/src/osdc/Journaler.h index 1b40eadec1696..4c141fea161bf 100644 --- a/src/osdc/Journaler.h +++ b/src/osdc/Journaler.h @@ -186,6 +186,16 @@ public: f->close_section(); // journal_header } + void print(std::ostream& os) const { + os << std::hex + << "Journaler::Header" + "(t=" << trimmed_pos + << " e=" << expire_pos + << " w=" << write_pos + << ")" + << std::dec; + } + static void generate_test_instances(std::list &ls) { ls.push_back(new Header()); -- 2.39.5