aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2024-06-20 11:17:21 +0200
committerPeter Eisentraut <peter@eisentraut.org>2024-06-20 11:17:21 +0200
commit16a3415440ecf2f5cd02848fc05cbfe040ce14c2 (patch)
tree5d10e015e3df887a89675eba1ff1712abe269b71
parent95b44bb025b5d13c673662af68a218bd1873861f (diff)
downloadpostgresql-16a3415440ecf2f5cd02848fc05cbfe040ce14c2.tar.gz
postgresql-16a3415440ecf2f5cd02848fc05cbfe040ce14c2.zip
Fix redundancy in error messages
pg_log_error() already prints the program name, so we don't need to print it again inside the message.
-rw-r--r--src/bin/pg_combinebackup/pg_combinebackup.c2
-rw-r--r--src/bin/pg_walsummary/pg_walsummary.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/pg_combinebackup/pg_combinebackup.c b/src/bin/pg_combinebackup/pg_combinebackup.c
index f4a1f499536..20bb1ab9195 100644
--- a/src/bin/pg_combinebackup/pg_combinebackup.c
+++ b/src/bin/pg_combinebackup/pg_combinebackup.c
@@ -212,7 +212,7 @@ main(int argc, char *argv[])
if (optind >= argc)
{
- pg_log_error("%s: no input directories specified", progname);
+ pg_log_error("no input directories specified");
pg_log_error_hint("Try \"%s --help\" for more information.", progname);
exit(1);
}
diff --git a/src/bin/pg_walsummary/pg_walsummary.c b/src/bin/pg_walsummary/pg_walsummary.c
index ffe183f0eee..93f6e6d408a 100644
--- a/src/bin/pg_walsummary/pg_walsummary.c
+++ b/src/bin/pg_walsummary/pg_walsummary.c
@@ -91,7 +91,7 @@ main(int argc, char *argv[])
if (optind >= argc)
{
- pg_log_error("%s: no input files specified", progname);
+ pg_log_error("no input files specified");
pg_log_error_hint("Try \"%s --help\" for more information.", progname);
exit(1);
}