]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
formatter: dump_bool dumps unquoted strings
authorYehuda Sadeh <yehuda@inktank.com>
Fri, 11 Oct 2013 23:56:46 +0000 (16:56 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Fri, 1 Nov 2013 23:17:31 +0000 (16:17 -0700)
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
(cherry picked from commit ad409f8a6d230e9b1199226a333bb54159c2c910)

src/common/Formatter.h

index 2b66b4b5ca276ee8436c771d9f9b6ee62a2895ef..0c3ea7b854cdab86e105e6e5eb75f5f609938521 100644 (file)
@@ -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;