From: J. Eric Ivancich Date: Tue, 7 Nov 2017 17:55:10 +0000 (-0500) Subject: rgw: address warnings due to incorrect format code X-Git-Tag: v13.0.1~260^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ededbedbfc6641e07ba4608ad87b9c0131679704;p=ceph.git rgw: address warnings due to incorrect format code Signed-off-by: J. Eric Ivancich --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 452dce2ad10d..ca8f9ffbd303 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -5718,7 +5718,8 @@ void RGWRados::create_bucket_id(string *bucket_id) uint64_t iid = instance_id(); uint64_t bid = next_bucket_id(); char buf[get_zone_params().get_id().size() + 48]; - snprintf(buf, sizeof(buf), "%s.%llu.%llu", get_zone_params().get_id().c_str(), iid, bid); + snprintf(buf, sizeof(buf), "%s.%" PRIu64 ".%" PRIu64, + get_zone_params().get_id().c_str(), iid, bid); *bucket_id = buf; }