Skip to content

Commit

Permalink
src/rgw: fix some format qualifiers
Browse files Browse the repository at this point in the history
Signed-off-by: Danny Al-Gaaf <[email protected]>
  • Loading branch information
dalgaaf committed Apr 13, 2018
1 parent 0aec576 commit c074a04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/rgw/rgw_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -1048,7 +1048,7 @@ struct rgw_bucket {
uint64_t id;
decode(id, bl);
char buf[16];
snprintf(buf, sizeof(buf), "%llu", (long long)id);
snprintf(buf, sizeof(buf), "%" PRIu64, id);
bucket_id = buf;
} else {
decode(bucket_id, bl);
Expand Down
2 changes: 1 addition & 1 deletion src/rgw/rgw_log.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ struct rgw_log_entry {
uint64_t id;
decode(id, p);
char buf[32];
snprintf(buf, sizeof(buf), "%llu", (long long)id);
snprintf(buf, sizeof(buf), "%" PRIu64, id);
bucket_id = buf;
} else {
decode(bucket_id, p);
Expand Down

0 comments on commit c074a04

Please sign in to comment.