From: Magnus Hagander Date: Tue, 5 Jun 2012 13:51:30 +0000 (+0200) Subject: Use strerror(errno) instead of %m X-Git-Tag: REL9_2_BETA3~131 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=92135ea0ed8f75daa86cd94301cedc7f5b714e3c;p=postgresql Use strerror(errno) instead of %m Found by Fujii Masao --- diff --git a/src/bin/pg_basebackup/receivelog.c b/src/bin/pg_basebackup/receivelog.c index efbc4ca653..48ab385c48 100644 --- a/src/bin/pg_basebackup/receivelog.c +++ b/src/bin/pg_basebackup/receivelog.c @@ -366,7 +366,8 @@ ReceiveXlogStream(PGconn *conn, XLogRecPtr startpos, uint32 timeline, char *sysi } else if (r < 0) { - fprintf(stderr, _("%s: select() failed: %m\n"), progname); + fprintf(stderr, _("%s: select() failed: %s\n"), + progname, strerror(errno)); return false; } /* Else there is actually data on the socket */