Fix use of unportable %m format

This commit is contained in:
Peter Eisentraut 2011-07-07 21:21:57 +03:00
parent 60a81ad133
commit d7fb49314d

View File

@ -287,7 +287,7 @@ pg_scandir_internal(const char *dirname,
size_t entrysize;
if ((dirdesc = opendir(dirname)) == NULL)
pg_log(PG_FATAL, "could not open directory \"%s\": %m\n", dirname);
pg_log(PG_FATAL, "could not open directory \"%s\": %s\n", dirname, getErrorText(errno));
*namelist = NULL;