From ebbdb3cc93f034214d41c9f7f268758012defe2e Mon Sep 17 00:00:00 2001 From: Matt Benjamin Date: Thu, 29 May 2014 10:41:13 -0400 Subject: [PATCH] Add required spacing after string literals (PRIu64). The common formatting for these 64bit types is not C++ 2011 clean. Signed-off-by: Matt Benjamin Conflicts: src/common/perf_counters.cc --- src/rgw/rgw_civetweb.cc | 2 +- src/rgw/rgw_fcgi.cc | 2 +- src/rgw/rgw_formats.cc | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/rgw/rgw_civetweb.cc b/src/rgw/rgw_civetweb.cc index a31177fb394b..856b2f139e93 100644 --- a/src/rgw/rgw_civetweb.cc +++ b/src/rgw/rgw_civetweb.cc @@ -167,6 +167,6 @@ int RGWMongoose::send_content_length(uint64_t len) { has_content_length = true; char buf[21]; - snprintf(buf, sizeof(buf), "%"PRIu64, len); + snprintf(buf, sizeof(buf), "%" PRIu64, len); return print("Content-Length: %s\n", buf); } diff --git a/src/rgw/rgw_fcgi.cc b/src/rgw/rgw_fcgi.cc index 4b24dabe5568..ad086bc74060 100644 --- a/src/rgw/rgw_fcgi.cc +++ b/src/rgw/rgw_fcgi.cc @@ -47,7 +47,7 @@ int RGWFCGX::send_100_continue() int RGWFCGX::send_content_length(uint64_t len) { char buf[21]; - snprintf(buf, sizeof(buf), "%"PRIu64, len); + snprintf(buf, sizeof(buf), "%" PRIu64, len); return print("Content-Length: %s\n", buf); } diff --git a/src/rgw/rgw_formats.cc b/src/rgw/rgw_formats.cc index 56fc7e7da080..b69415195a5f 100644 --- a/src/rgw/rgw_formats.cc +++ b/src/rgw/rgw_formats.cc @@ -97,12 +97,12 @@ void RGWFormatter_Plain::close_section() void RGWFormatter_Plain::dump_unsigned(const char *name, uint64_t u) { - dump_value_int(name, "%"PRIu64, u); + dump_value_int(name, "%" PRIu64, u); } void RGWFormatter_Plain::dump_int(const char *name, int64_t u) { - dump_value_int(name, "%"PRId64, u); + dump_value_int(name, "%" PRId64, u); } void RGWFormatter_Plain::dump_float(const char *name, double d) -- 2.47.3