(main): Print the locale name as well in the error message.

This commit is contained in:
Ulrich Drepper 2000-05-05 04:07:18 +00:00
parent 5a59a3a514
commit 22b04aad10
1 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,5 @@
/* Testing the implementation of strfmon(3).
Copyright (C) 1996, 1997 Free Software Foundation, Inc.
Copyright (C) 1996, 1997, 2000 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Jochen Hein <jochen.hein@delphi.central.de>, 1997.
@ -60,8 +60,9 @@ main (int argc, char *argv[])
if (strcmp (s, argv[4]) != 0)
{
printf ("format: \"%s\", expected: \"%s\", got: \"%s\" => %s\n",
argv[2], argv[4], s,
printf ("\
locale: \"%s\", format: \"%s\", expected: \"%s\", got: \"%s\" => %s\n",
argv[1], argv[2], argv[4], s,
strcmp (s, argv[4]) != 0 ? "false" : "correct");
exit (EXIT_FAILURE);
}