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
This commit is contained in:
John Naylor 2024-03-07 14:25:30 +07:00
parent ac234e6377
commit e444ebcb85
1 changed files with 3 additions and 3 deletions

View File

@ -2737,7 +2737,7 @@ RT_SCOPE void
RT_STATS(RT_RADIX_TREE * tree) RT_STATS(RT_RADIX_TREE * tree)
{ {
fprintf(stderr, "max_val = " UINT64_FORMAT "\n", tree->ctl->max_val); 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 #ifdef RT_SHMEM
fprintf(stderr, "handle = " DSA_POINTER_FORMAT "\n", tree->ctl->handle); 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]; 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"); fprintf(stderr, "\n");
} }