From 4fb233cf702957e782083d760877afa48d4f6965 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Fri, 11 Oct 2013 16:56:46 -0700 Subject: [PATCH] formatter: dump_bool dumps unquoted strings Signed-off-by: Yehuda Sadeh (cherry picked from commit ad409f8a6d230e9b1199226a333bb54159c2c910) --- src/common/Formatter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/Formatter.h b/src/common/Formatter.h index 2b66b4b5ca276..0c3ea7b854cda 100644 --- a/src/common/Formatter.h +++ b/src/common/Formatter.h @@ -44,7 +44,7 @@ class Formatter { virtual void dump_float(const char *name, double d) = 0; virtual void dump_string(const char *name, std::string s) = 0; virtual void dump_bool(const char *name, bool b) { - dump_string(name, (b ? "true" : "false")); + dump_format_unquoted(name, "%s", (b ? "true" : "false")); } virtual std::ostream& dump_stream(const char *name) = 0; virtual void dump_format(const char *name, const char *fmt, ...) = 0; -- 2.39.5