]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
src/rgw: fix some format qualifiers
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 13 Apr 2018 14:14:33 +0000 (16:14 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 13 Apr 2018 22:15:58 +0000 (00:15 +0200)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/rgw/rgw_common.h
src/rgw/rgw_log.h

index 8cd71a276a51b284e3ea1cafc1789057ff65ce5a..089de646f826ef33f2790e0b46edff6b35d650b2 100644 (file)
@@ -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);
index 20795a75156bfc35ed08a58ee08314e3a9814cbc..c2df19a887d010713f05deecd258a50e8c3ff276 100644 (file)
@@ -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);