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 %"PRIu64, 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 %"PRIu64, 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 (%"PRIu64", %s, %"PRIu64")", 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 (%"PRIu64", %s, %"PRIu64")",
+ 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);
if (r < 0)
return r;
- CLS_LOG(20, "get_children of (%"PRIu64", %s, %"PRIu64")",
+ 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);
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: %"PRId64" -> %"PRId64"\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: %"PRId64" -> %"PRId64"\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);
f->dump_unsigned("sum", a.first);
} else if (d->type & PERFCOUNTER_TIME) {
f->dump_unsigned("avgcount", a.second);
- f->dump_format_unquoted("sum", "%"PRId64".%09"PRId64,
+ f->dump_format_unquoted("sum", "%" PRId64 ".%09" PRId64,
a.first / 1000000000ull,
a.first % 1000000000ull);
} else {
if (d->type & PERFCOUNTER_U64) {
f->dump_unsigned(d->name, v);
} else if (d->type & PERFCOUNTER_TIME) {
- f->dump_format_unquoted(d->name, "%"PRId64".%09"PRId64,
+ f->dump_format_unquoted(d->name, "%" PRId64 ".%09" PRId64,
v / 1000000000ull,
v % 1000000000ull);
} else {