diff options
author | Yehuda Sadeh <yehuda@inktank.com> | 2013-10-11 16:56:46 -0700 |
---|---|---|
committer | Yehuda Sadeh <yehuda@inktank.com> | 2013-10-11 16:56:46 -0700 |
commit | ad409f8a6d230e9b1199226a333bb54159c2c910 (patch) | |
tree | 7261b79d7a9e2fd46d4d427f1cec71531666eb23 | |
parent | c1acf9a555df7648b2c42d66a9cc7057d36a30f0 (diff) | |
download | ceph-ad409f8a6d230e9b1199226a333bb54159c2c910.tar.gz |
formatter: dump_bool dumps unquoted strings
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
-rw-r--r-- | src/common/Formatter.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/Formatter.h b/src/common/Formatter.h index f77aa8db179..ac68b7f461d 100644 --- a/src/common/Formatter.h +++ b/src/common/Formatter.h @@ -45,7 +45,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; |