From: Jim Meyering Date: Mon, 17 Sep 2001 10:11:27 +0000 (+0000) Subject: (main): Change the `ignoring excess arguments' diagnostic X-Git-Tag: TEXTUTILS-2_0_15~63 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c3a2a9a1cfc4bbb23175c5c8f47d78ba5f7be8f0;p=thirdparty%2Fcoreutils.git (main): Change the `ignoring excess arguments' diagnostic to list the first one we're ignoring. Suggestion from Karl Berry. --- 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); }