Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 92135ea

Browse files
committed
Use strerror(errno) instead of %m
Found by Fujii Masao
1 parent 1e57c2c commit 92135ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bin/pg_basebackup/receivelog.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,8 @@ ReceiveXlogStream(PGconn *conn, XLogRecPtr startpos, uint32 timeline, char *sysi
366366
}
367367
else if (r < 0)
368368
{
369-
fprintf(stderr, _("%s: select() failed: %m\n"), progname);
369+
fprintf(stderr, _("%s: select() failed: %s\n"),
370+
progname, strerror(errno));
370371
return false;
371372
}
372373
/* Else there is actually data on the socket */

0 commit comments

Comments
 (0)