From: Matt Benjamin Date: Thu, 29 May 2014 14:41:13 +0000 (-0400) Subject: Add required spacing after string literals (PRIu64). X-Git-Tag: v0.84~119^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ebbdb3cc93f034214d41c9f7f268758012defe2e;p=ceph.git 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 --- 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)