Skip to content

Commit 6612185

Browse files
committed
Fix incorrect format placeholders
1 parent a189ed4 commit 6612185

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/bin/pg_combinebackup/pg_combinebackup.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1277,8 +1277,8 @@ slurp_file(int fd, char *filename, StringInfo buf, int maxlen)
12771277
if (rb < 0)
12781278
pg_fatal("could not read file \"%s\": %m", filename);
12791279
else
1280-
pg_fatal("could not read file \"%s\": read only %d of %d bytes",
1281-
filename, (int) rb, (int) st.st_size);
1280+
pg_fatal("could not read file \"%s\": read only %zd of %lld bytes",
1281+
filename, rb, (long long int) st.st_size);
12821282
}
12831283

12841284
/* Adjust buffer length for new data and restore trailing-\0 invariant */

src/bin/pg_combinebackup/reconstruct.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ read_bytes(rfile *rf, void *buffer, unsigned length)
511511
if (rb < 0)
512512
pg_fatal("could not read file \"%s\": %m", rf->filename);
513513
else
514-
pg_fatal("could not read file \"%s\": read only %d of %d bytes",
514+
pg_fatal("could not read file \"%s\": read only %d of %u bytes",
515515
rf->filename, rb, length);
516516
}
517517
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy