Fix incorrect format placeholders
authorPeter Eisentraut
Wed, 17 Nov 2021 06:30:30 +0000 (07:30 +0100)
committerPeter Eisentraut
Wed, 17 Nov 2021 06:30:30 +0000 (07:30 +0100)
src/bin/pg_basebackup/pg_recvlogical.c
src/bin/pg_basebackup/receivelog.c

index ebeb12d497c5eb348c75f655cbca4b4bf1472f28..f235d6fecf0feb2425442ba590c86b53f4dec127 100644 (file)
@@ -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;
        }
index 2d4f660daa9c593be84a9cc89aa1a17530484562..e9489f7dcbdc57b90ba42fff1ed1b20fb4eebd89 100644 (file)
@@ -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;