From 16a3415440ecf2f5cd02848fc05cbfe040ce14c2 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Thu, 20 Jun 2024 11:17:21 +0200 Subject: [PATCH] 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. --- src/bin/pg_combinebackup/pg_combinebackup.c | 2 +- src/bin/pg_walsummary/pg_walsummary.c | 2 +- 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); } -- 2.30.2