summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut2024-03-13 05:40:32 +0000
committerPeter Eisentraut2024-03-13 05:40:32 +0000
commit6612185883c6a43979693358423ee647421ff621 (patch)
tree59c73dbccda0484be7dbcff183dd77af6bf4c795
parenta189ed49d6292979be1478292246be61c4563043 (diff)
Fix incorrect format placeholders
-rw-r--r--src/bin/pg_combinebackup/pg_combinebackup.c4
-rw-r--r--src/bin/pg_combinebackup/reconstruct.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/pg_combinebackup/pg_combinebackup.c b/src/bin/pg_combinebackup/pg_combinebackup.c
index 31ead7f4058..430edcbf5d5 100644
--- a/src/bin/pg_combinebackup/pg_combinebackup.c
+++ b/src/bin/pg_combinebackup/pg_combinebackup.c
@@ -1277,8 +1277,8 @@ slurp_file(int fd, char *filename, StringInfo buf, int maxlen)
if (rb < 0)
pg_fatal("could not read file \"%s\": %m", filename);
else
- pg_fatal("could not read file \"%s\": read only %d of %d bytes",
- filename, (int) rb, (int) st.st_size);
+ pg_fatal("could not read file \"%s\": read only %zd of %lld bytes",
+ filename, rb, (long long int) st.st_size);
}
/* Adjust buffer length for new data and restore trailing-\0 invariant */
diff --git a/src/bin/pg_combinebackup/reconstruct.c b/src/bin/pg_combinebackup/reconstruct.c
index 873d3079025..b0b246f1f13 100644
--- a/src/bin/pg_combinebackup/reconstruct.c
+++ b/src/bin/pg_combinebackup/reconstruct.c
@@ -511,7 +511,7 @@ read_bytes(rfile *rf, void *buffer, unsigned length)
if (rb < 0)
pg_fatal("could not read file \"%s\": %m", rf->filename);
else
- pg_fatal("could not read file \"%s\": read only %d of %d bytes",
+ pg_fatal("could not read file \"%s\": read only %d of %u bytes",
rf->filename, rb, length);
}
}