From: Peter Eisentraut Date: Thu, 7 Jul 2011 18:21:57 +0000 (+0300) Subject: Fix use of unportable %m format X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=f1d869276f7c256ade9d5dd6a4d8143821cdac1c;p=users%2Fhanada%2Fpostgres.git Fix use of unportable %m format --- diff --git a/contrib/pg_upgrade/file.c b/contrib/pg_upgrade/file.c index 07a7eb8d14..29e3c06a9e 100644 --- a/contrib/pg_upgrade/file.c +++ b/contrib/pg_upgrade/file.c @@ -287,7 +287,7 @@ pg_scandir_internal(migratorContext *ctx, const char *dirname, size_t entrysize; if ((dirdesc = opendir(dirname)) == NULL) - pg_log(ctx, PG_FATAL, "Could not open directory \"%s\": %m\n", dirname); + pg_log(ctx, PG_FATAL, "Could not open directory \"%s\": %s\n", dirname, getErrorText(errno)); *namelist = NULL;