Use strerror(errno) instead of %m

Found by Fujii Masao
This commit is contained in:
Magnus Hagander 2012-06-05 15:51:30 +02:00
parent 1e57c2c5b2
commit 92135ea0ed

View File

@ -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 */