mirror of
https://github.com/ceph/ceph
synced 2025-01-12 14:10:27 +00:00
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:
commit
48d612001a
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user