aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2021-12-22 08:34:10 +0100
committerPeter Eisentraut <peter@eisentraut.org>2021-12-22 08:42:33 +0100
commitdfaa346c7c00ff8a3fd8ea436a7d5be7527e67cb (patch)
tree0bd6c75cbe565db60bb19051e100c604b32e88fb /src
parentfc95d35b9429096ec4d028d79dcf1fb8b5d4b16e (diff)
downloadpostgresql-dfaa346c7c00ff8a3fd8ea436a7d5be7527e67cb.tar.gz
postgresql-dfaa346c7c00ff8a3fd8ea436a7d5be7527e67cb.zip
Fix incorrect format placeholders
Diffstat (limited to 'src')
-rw-r--r--src/backend/utils/mmgr/aset.c2
-rw-r--r--src/backend/utils/mmgr/generation.c2
-rw-r--r--src/backend/utils/mmgr/mcxt.c8
-rw-r--r--src/backend/utils/mmgr/slab.c2
4 files changed, 7 insertions, 7 deletions
diff --git a/src/backend/utils/mmgr/aset.c b/src/backend/utils/mmgr/aset.c
index 77872e77bcd..73cf6772743 100644
--- a/src/backend/utils/mmgr/aset.c
+++ b/src/backend/utils/mmgr/aset.c
@@ -1378,7 +1378,7 @@ AllocSetStats(MemoryContext context,
char stats_string[200];
snprintf(stats_string, sizeof(stats_string),
- "%zu total in %zd blocks; %zu free (%zd chunks); %zu used",
+ "%zu total in %zu blocks; %zu free (%zu chunks); %zu used",
totalspace, nblocks, freespace, freechunks,
totalspace - freespace);
printfunc(context, passthru, stats_string, print_to_stderr);
diff --git a/src/backend/utils/mmgr/generation.c b/src/backend/utils/mmgr/generation.c
index 584cd614da0..e1822c9d90f 100644
--- a/src/backend/utils/mmgr/generation.c
+++ b/src/backend/utils/mmgr/generation.c
@@ -703,7 +703,7 @@ GenerationStats(MemoryContext context,
char stats_string[200];
snprintf(stats_string, sizeof(stats_string),
- "%zu total in %zd blocks (%zd chunks); %zu free (%zd chunks); %zu used",
+ "%zu total in %zu blocks (%zu chunks); %zu free (%zu chunks); %zu used",
totalspace, nblocks, nchunks, freespace,
nfreechunks, totalspace - freespace);
printfunc(context, passthru, stats_string, print_to_stderr);
diff --git a/src/backend/utils/mmgr/mcxt.c b/src/backend/utils/mmgr/mcxt.c
index 6919a732804..8fa1e1faafa 100644
--- a/src/backend/utils/mmgr/mcxt.c
+++ b/src/backend/utils/mmgr/mcxt.c
@@ -528,7 +528,7 @@ MemoryContextStatsDetail(MemoryContext context, int max_children,
if (print_to_stderr)
fprintf(stderr,
- "Grand total: %zu bytes in %zd blocks; %zu free (%zd chunks); %zu used\n",
+ "Grand total: %zu bytes in %zu blocks; %zu free (%zu chunks); %zu used\n",
grand_totals.totalspace, grand_totals.nblocks,
grand_totals.freespace, grand_totals.freechunks,
grand_totals.totalspace - grand_totals.freespace);
@@ -547,7 +547,7 @@ MemoryContextStatsDetail(MemoryContext context, int max_children,
ereport(LOG_SERVER_ONLY,
(errhidestmt(true),
errhidecontext(true),
- errmsg_internal("Grand total: %zu bytes in %zd blocks; %zu free (%zd chunks); %zu used",
+ errmsg_internal("Grand total: %zu bytes in %zu blocks; %zu free (%zu chunks); %zu used",
grand_totals.totalspace, grand_totals.nblocks,
grand_totals.freespace, grand_totals.freechunks,
grand_totals.totalspace - grand_totals.freespace)));
@@ -612,7 +612,7 @@ MemoryContextStatsInternal(MemoryContext context, int level,
for (i = 0; i <= level; i++)
fprintf(stderr, " ");
fprintf(stderr,
- "%d more child contexts containing %zu total in %zd blocks; %zu free (%zd chunks); %zu used\n",
+ "%d more child contexts containing %zu total in %zu blocks; %zu free (%zu chunks); %zu used\n",
ichild - max_children,
local_totals.totalspace,
local_totals.nblocks,
@@ -624,7 +624,7 @@ MemoryContextStatsInternal(MemoryContext context, int level,
ereport(LOG_SERVER_ONLY,
(errhidestmt(true),
errhidecontext(true),
- errmsg_internal("level: %d; %d more child contexts containing %zu total in %zd blocks; %zu free (%zd chunks); %zu used",
+ errmsg_internal("level: %d; %d more child contexts containing %zu total in %zu blocks; %zu free (%zu chunks); %zu used",
level,
ichild - max_children,
local_totals.totalspace,
diff --git a/src/backend/utils/mmgr/slab.c b/src/backend/utils/mmgr/slab.c
index 553dd7f6674..04783b83856 100644
--- a/src/backend/utils/mmgr/slab.c
+++ b/src/backend/utils/mmgr/slab.c
@@ -671,7 +671,7 @@ SlabStats(MemoryContext context,
char stats_string[200];
snprintf(stats_string, sizeof(stats_string),
- "%zu total in %zd blocks; %zu free (%zd chunks); %zu used",
+ "%zu total in %zu blocks; %zu free (%zu chunks); %zu used",
totalspace, nblocks, freespace, freechunks,
totalspace - freespace);
printfunc(context, passthru, stats_string, print_to_stderr);