mirror of
https://github.com/ceph/ceph
synced 2025-02-19 00:47:49 +00:00
rgw: silence a compiling warning
printf() a uint64 in a portable way (i.e. C98 compliant way). Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
parent
7b9433c2b8
commit
c59f402664
@ -253,7 +253,7 @@ void seed::do_encode()
|
||||
dencode.bencode(PIECE_LENGTH, info.piece_length, bl);
|
||||
|
||||
char info_sha[100] = { 0 };
|
||||
sprintf(info_sha, "%ld", sha_len);
|
||||
sprintf(info_sha, "%" PRIu64, sha_len);
|
||||
string sha_len_str = info_sha;
|
||||
dencode.bencode_key(PIECES, bl);
|
||||
bl.append(sha_len_str.c_str(), sha_len_str.length());
|
||||
|
Loading…
Reference in New Issue
Block a user