aboutsummaryrefslogtreecommitdiff
path: root/src/common/psprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/psprintf.c')
-rw-r--r--src/common/psprintf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/psprintf.c b/src/common/psprintf.c
index 147a695c860..a063fd26d51 100644
--- a/src/common/psprintf.c
+++ b/src/common/psprintf.c
@@ -115,8 +115,8 @@ pvsnprintf(char *buf, size_t len, const char *fmt, va_list args)
#ifndef FRONTEND
elog(ERROR, "vsnprintf failed: %m with format string \"%s\"", fmt);
#else
- fprintf(stderr, "vsnprintf failed: %s with format string \"%s\"\n",
- strerror(errno), fmt);
+ fprintf(stderr, "vsnprintf failed: %m with format string \"%s\"\n",
+ fmt);
exit(EXIT_FAILURE);
#endif
}