]> granicus.if.org Git - pgbouncer/commitdiff
Use strerror() instead of %m for portability
authorPeter Eisentraut <peter@eisentraut.org>
Mon, 18 Dec 2017 15:54:32 +0000 (10:54 -0500)
committerPeter Eisentraut <peter@eisentraut.org>
Mon, 18 Dec 2017 15:54:32 +0000 (10:54 -0500)
src/loader.c

index 1c3e8f780cd2e92cd15f96896d627f61ff37bb0e..2ee8001ad1526b74d543d94eaab0ced816abbf5d 100644 (file)
@@ -557,7 +557,7 @@ bool load_auth_file(const char *fn)
 
        buf = load_file(fn, NULL);
        if (buf == NULL) {
-               log_error("could not open auth_file %s: %m", fn);
+               log_error("could not open auth_file %s: %s", fn, strerror(errno));
                return NULL;
        }