From 4c04a18b05b01d20320872c3dd66b7e439f77e04 Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Mon, 1 Sep 2014 14:45:05 +0100 Subject: [PATCH] [era] era_dump should show bool values as 'true' or 'false' rather than 0 or 1 --- era/xml_format.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/era/xml_format.cc b/era/xml_format.cc index 59aa4a7..8e49ce0 100644 --- a/era/xml_format.cc +++ b/era/xml_format.cc @@ -47,7 +47,7 @@ namespace { void writeset_bit(uint32_t bit, bool value) { out_.indent(); // FIXME: collect all the bits, then uuencode - out_ << "" << endl; + out_ << "" << endl; } void end_writeset() { @@ -74,6 +74,10 @@ namespace { out_ << "" << endl; } + char const *truth_value(bool v) const { + return v ? "true" : "false"; + } + private: indented_stream out_; };