diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2021-11-17 07:30:30 +0100 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2021-11-17 07:30:30 +0100 |
commit | 303d4eb1c548f1d0821e168a6e7c7e9bd02c8088 (patch) | |
tree | 7fbb5f863955f3c1ea194493b3973551e7fd696d /src | |
parent | f975fc3a3542005ed0dd689bdb5bd9ed4e1f4d52 (diff) | |
download | postgresql-303d4eb1c548f1d0821e168a6e7c7e9bd02c8088.tar.gz postgresql-303d4eb1c548f1d0821e168a6e7c7e9bd02c8088.zip |
Fix incorrect format placeholders
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/pg_basebackup/pg_recvlogical.c | 4 | ||||
-rw-r--r-- | src/bin/pg_basebackup/receivelog.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/pg_basebackup/pg_recvlogical.c b/src/bin/pg_basebackup/pg_recvlogical.c index ebeb12d497c..f235d6fecf0 100644 --- a/src/bin/pg_basebackup/pg_recvlogical.c +++ b/src/bin/pg_basebackup/pg_recvlogical.c @@ -556,7 +556,7 @@ StreamLogicalLog(void) if (ret < 0) { - pg_log_error("could not write %u bytes to log file \"%s\": %m", + pg_log_error("could not write %d bytes to log file \"%s\": %m", bytes_left, outfile); goto error; } @@ -568,7 +568,7 @@ StreamLogicalLog(void) if (write(outfd, "\n", 1) != 1) { - pg_log_error("could not write %u bytes to log file \"%s\": %m", + pg_log_error("could not write %d bytes to log file \"%s\": %m", 1, outfile); goto error; } diff --git a/src/bin/pg_basebackup/receivelog.c b/src/bin/pg_basebackup/receivelog.c index 2d4f660daa9..e9489f7dcbd 100644 --- a/src/bin/pg_basebackup/receivelog.c +++ b/src/bin/pg_basebackup/receivelog.c @@ -1133,7 +1133,7 @@ ProcessXLogDataMsg(PGconn *conn, StreamCtl *stream, char *copybuf, int len, if (stream->walmethod->write(walfile, copybuf + hdr_len + bytes_written, bytes_to_write) != bytes_to_write) { - pg_log_error("could not write %u bytes to WAL file \"%s\": %s", + pg_log_error("could not write %d bytes to WAL file \"%s\": %s", bytes_to_write, current_walfile_name, stream->walmethod->getlasterror()); return false; |