mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-27 08:39:28 +08:00
Fix incorrect format placeholders
This commit is contained in:
parent
f975fc3a35
commit
303d4eb1c5
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user