Merge pull request #18796 from ivancich/wip-fix-fmt-warnings

rgw: address warnings due to incorrect format code

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
This commit is contained in:
Casey Bodley 2017-11-09 09:43:33 -05:00 committed by GitHub
commit 48d612001a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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;
}