Skip to content

Commit 303d4eb

Browse files
committed
Fix incorrect format placeholders
1 parent f975fc3 commit 303d4eb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/bin/pg_basebackup/pg_recvlogical.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ StreamLogicalLog(void)
556556

557557
if (ret < 0)
558558
{
559-
pg_log_error("could not write %u bytes to log file \"%s\": %m",
559+
pg_log_error("could not write %d bytes to log file \"%s\": %m",
560560
bytes_left, outfile);
561561
goto error;
562562
}
@@ -568,7 +568,7 @@ StreamLogicalLog(void)
568568

569569
if (write(outfd, "\n", 1) != 1)
570570
{
571-
pg_log_error("could not write %u bytes to log file \"%s\": %m",
571+
pg_log_error("could not write %d bytes to log file \"%s\": %m",
572572
1, outfile);
573573
goto error;
574574
}

src/bin/pg_basebackup/receivelog.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,7 @@ ProcessXLogDataMsg(PGconn *conn, StreamCtl *stream, char *copybuf, int len,
11331133
if (stream->walmethod->write(walfile, copybuf + hdr_len + bytes_written,
11341134
bytes_to_write) != bytes_to_write)
11351135
{
1136-
pg_log_error("could not write %u bytes to WAL file \"%s\": %s",
1136+
pg_log_error("could not write %d bytes to WAL file \"%s\": %s",
11371137
bytes_to_write, current_walfile_name,
11381138
stream->walmethod->getlasterror());
11391139
return false;

0 commit comments

Comments
 (0)