#include "include/types.h"
#include "objclass/objclass.h"
#include "include/rbd_types.h"
+#include <inttypes.h>
#include "cls/rbd/cls_rbd.h"
key_from_snap_id(snap_id.val, &snapshot_key);
r = read_key(hctx, snapshot_key, &snap);
if (r < 0) {
- CLS_ERR("could not read key for snapshot id %llu", snap_id.val);
+ CLS_ERR("could not read key for snapshot id %"PRIu64, snap_id.val);
return r;
}
key_from_snap_id(snap_id.val, &snapshot_key);
r = read_key(hctx, snapshot_key, &snap);
if (r < 0) {
- CLS_ERR("could not read key for snapshot id %d", snap_id.val);
+ CLS_ERR("could not read key for snapshot id %"PRIu64, snap_id.val);
return r;
}
if (r < 0)
return r;
- CLS_LOG(20, "add_child %s to (%d, %s, %d)", c_image_id.c_str(),
+ CLS_LOG(20, "add_child %s to (%"PRIu64", %s, %"PRIu64")", c_image_id.c_str(),
p_pool_id, p_image_id.c_str(), p_snap_id.val);
string key = parent_key(p_pool_id, p_image_id, p_snap_id);
if (r < 0)
return r;
- CLS_LOG(20, "remove_child %s from (%d, %s, %d)", c_image_id.c_str(),
- p_pool_id, p_image_id.c_str(), p_snap_id.val);
+ CLS_LOG(20, "remove_child %s from (%"PRIu64", %s, %"PRIu64")",
+ c_image_id.c_str(), p_pool_id, p_image_id.c_str(),
+ p_snap_id.val);
string key = parent_key(p_pool_id, p_image_id, p_snap_id);
if (r < 0)
return r;
- CLS_LOG(20, "get_children of (%d, %s, %d)",
+ CLS_LOG(20, "get_children of (%"PRIu64", %s, %"PRIu64")",
p_pool_id, p_image_id.c_str(), p_snap_id.val);
string key = parent_key(p_pool_id, p_image_id, p_snap_id);
#include <string.h>
#include <stdlib.h>
#include <errno.h>
+#include <inttypes.h>
#include "include/types.h"
#include "include/utime.h"
if (cur_disk.pending_map.empty()) {
if (cur_disk.exists) {
struct rgw_bucket_category_stats& old_stats = header.stats[cur_disk.meta.category];
- CLS_LOG(10, "total_entries: %d -> %d\n", old_stats.num_entries, old_stats.num_entries - 1);
+ CLS_LOG(10, "total_entries: %"PRId64" -> %"PRId64"\n", old_stats.num_entries, old_stats.num_entries - 1);
old_stats.num_entries--;
old_stats.total_size -= cur_disk.meta.size;
old_stats.total_size_rounded -= get_rounded_size(cur_disk.meta.size);
return ret;
break;
case CEPH_RGW_UPDATE:
- CLS_LOG(10, "CEPH_RGW_UPDATE name=%s total_entries: %d -> %d\n", cur_change.name.c_str(), stats.num_entries, stats.num_entries + 1);
+ CLS_LOG(10, "CEPH_RGW_UPDATE name=%s total_entries: %"PRId64" -> %"PRId64"\n", cur_change.name.c_str(), stats.num_entries, stats.num_entries + 1);
stats.num_entries++;
stats.total_size += cur_change.meta.size;
stats.total_size_rounded += get_rounded_size(cur_change.meta.size);