summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Naylor2024-03-07 07:25:30 +0000
committerJohn Naylor2024-03-07 07:26:52 +0000
commite444ebcb85c0b55b1ccf7bcb785ad2708090a2a2 (patch)
tree7855eaab3f74a13a0400483aacfc0d7474833eba
parentac234e6377dd8bccc83f256fce043bf4ecf9d1f7 (diff)
Fix incorrect format specifier for int64
Follow-up to ee1b30f12, per buildfarm member mamba. Discussion: https://postgr.es/m/CANWCAZYwyRMU%2BOTVOjK%3Dno1hm-W3ZQ5vrSFM1MFAaLtLydvwzA%40mail.gmail.com
-rw-r--r--src/include/lib/radixtree.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/lib/radixtree.h b/src/include/lib/radixtree.h
index 93e6a7d809..b8ad51c14d 100644
--- a/src/include/lib/radixtree.h
+++ b/src/include/lib/radixtree.h
@@ -2737,7 +2737,7 @@ RT_SCOPE void
RT_STATS(RT_RADIX_TREE * tree)
{
fprintf(stderr, "max_val = " UINT64_FORMAT "\n", tree->ctl->max_val);
- fprintf(stderr, "num_keys = %ld\n", tree->ctl->num_keys);
+ fprintf(stderr, "num_keys = %lld\n", (long long) tree->ctl->num_keys);
#ifdef RT_SHMEM
fprintf(stderr, "handle = " DSA_POINTER_FORMAT "\n", tree->ctl->handle);
@@ -2749,10 +2749,10 @@ RT_STATS(RT_RADIX_TREE * tree)
{
RT_SIZE_CLASS_ELEM size_class = RT_SIZE_CLASS_INFO[i];
- fprintf(stderr, ", n%d = %ld", size_class.fanout, tree->ctl->num_nodes[i]);
+ fprintf(stderr, ", n%d = %lld", size_class.fanout, (long long) tree->ctl->num_nodes[i]);
}
- fprintf(stderr, ", leaves = %ld", tree->ctl->num_leaves);
+ fprintf(stderr, ", leaves = %lld", (long long) tree->ctl->num_leaves);
fprintf(stderr, "\n");
}