]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(main): Change the `ignoring excess arguments' diagnostic
authorJim Meyering <jim@meyering.net>
Mon, 17 Sep 2001 10:11:27 +0000 (10:11 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 17 Sep 2001 10:11:27 +0000 (10:11 +0000)
to list the first one we're ignoring.  Suggestion from Karl Berry.

src/printf.c

index 8c7dcfe8d3a75e407f97a6ca4898f66bcfe96cce..7009303ed54f477c4bf04483d1256c6198a094a4 100644 (file)
@@ -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);
 }