]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: address warnings due to incorrect format code 18796/head
authorJ. Eric Ivancich <ivancich@redhat.com>
Tue, 7 Nov 2017 17:55:10 +0000 (12:55 -0500)
committerJ. Eric Ivancich <ivancich@redhat.com>
Tue, 7 Nov 2017 17:55:10 +0000 (12:55 -0500)
Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
src/rgw/rgw_rados.cc

index 452dce2ad10dd0d2bf07ca3a1455467bfdb4fa68..ca8f9ffbd3031fe5fe36ee886f0befaaf7dce4a1 100644 (file)
@@ -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;
 }