From c3a2a9a1cfc4bbb23175c5c8f47d78ba5f7be8f0 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 17 Sep 2001 10:11:27 +0000 Subject: [PATCH] (main): Change the `ignoring excess arguments' diagnostic to list the first one we're ignoring. Suggestion from Karl Berry. --- src/printf.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/printf.c b/src/printf.c index 8c7dcfe8d3..7009303ed5 100644 --- a/src/printf.c +++ b/src/printf.c @@ -1,5 +1,5 @@ /* printf - format and print data - Copyright (C) 1990-2000, Free Software Foundation, Inc. + Copyright (C) 1990-2001, Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -554,7 +554,9 @@ main (int argc, char **argv) while (args_used > 0 && argc > 0); if (argc > 0) - error (0, 0, _("warning: excess arguments have been ignored")); + error (0, 0, + _("warning: ignoring excess arguments, starting with `%s'"), + argv[0]); exit (exit_status); } -- 2.47.3