From c074a04c269273341018e62f972a45c6951167a8 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Fri, 13 Apr 2018 16:14:33 +0200 Subject: [PATCH] src/rgw: fix some format qualifiers Signed-off-by: Danny Al-Gaaf --- src/rgw/rgw_common.h | 2 +- src/rgw/rgw_log.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rgw/rgw_common.h b/src/rgw/rgw_common.h index 8cd71a276a51b..089de646f826e 100644 --- a/src/rgw/rgw_common.h +++ b/src/rgw/rgw_common.h @@ -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); diff --git a/src/rgw/rgw_log.h b/src/rgw/rgw_log.h index 20795a75156bf..c2df19a887d01 100644 --- a/src/rgw/rgw_log.h +++ b/src/rgw/rgw_log.h @@ -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);