This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.25-635-g84d8c5b
- From: fw at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 29 Jun 2017 15:08:30 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.25-635-g84d8c5b
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via 84d8c5bc8b4815bbdd4395f419aed047db3b67e3 (commit)
from ccfb2964726512f6669fea99a43afa714e2e6a80 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=84d8c5bc8b4815bbdd4395f419aed047db3b67e3
commit 84d8c5bc8b4815bbdd4395f419aed047db3b67e3
Author: Florian Weimer <fweimer@redhat.com>
Date: Thu Jun 29 13:32:39 2017 +0200
vfprintf: Fix tst-vfprintf-mbs-prec and tst-vfprintf-user-type
diff --git a/ChangeLog b/ChangeLog
index 61f453d..147dcaa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2017-06-29 Florian Weimer <fweimer@redhat.com>
+
+ * stdio-common/tst-vfprintf-user-type.c (my_printf_function):
+ Adjust format string.
+ * stdio-common/Makefile (tst-vfprintf-mbs-prec.out): Add locale
+ dependency.
+
2017-06-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
* sysdeps/posix/spawni.c (__spawni_child): New function.
diff --git a/stdio-common/Makefile b/stdio-common/Makefile
index 309d83e..622a85f 100644
--- a/stdio-common/Makefile
+++ b/stdio-common/Makefile
@@ -87,6 +87,7 @@ $(objpfx)tst-grouping.out: $(gen-locales)
$(objpfx)tst-sprintf.out: $(gen-locales)
$(objpfx)tst-sscanf.out: $(gen-locales)
$(objpfx)tst-swprintf.out: $(gen-locales)
+$(objpfx)tst-vfprintf-mbs-prec.out: $(gen-locales)
endif
tst-printf-bz18872-ENV = MALLOC_TRACE=$(objpfx)tst-printf-bz18872.mtrace
diff --git a/stdio-common/tst-vfprintf-user-type.c b/stdio-common/tst-vfprintf-user-type.c
index e9596c3..91ea02f 100644
--- a/stdio-common/tst-vfprintf-user-type.c
+++ b/stdio-common/tst-vfprintf-user-type.c
@@ -29,6 +29,7 @@
#include <support/check.h>
#include <support/support.h>
#include <support/test-driver.h>
+#include <wchar.h>
/* Initialized by do_test using register_printf_type. */
static int user_type;
@@ -55,8 +56,9 @@ my_printf_function (FILE *fp, const struct printf_info *info,
const void *const *args)
{
if (test_verbose > 0)
- printf ("info: %s (%p, %p, {%p}@%p) called for %%%c (prec %d)\n",
- __func__, fp, info, args[0], args, info->spec, info->prec);
+ printf ("info: %s (%p, %p, {%p}@%p) called for %%%lc (prec %d)\n",
+ __func__, fp, info, args[0], args, (wint_t) info->spec,
+ info->prec);
TEST_VERIFY (info->spec == 'P');
size_t nargs;
@@ -109,8 +111,9 @@ my_arginfo_function (const struct printf_info *info,
if (info->spec != 'P')
return -1;
if (test_verbose > 0)
- printf ("info: %s (%p, %zu, %p, %p) called for %%%c (prec %d)\n",
- __func__, info, n, argtypes, size, info->spec, info->prec);
+ printf ("info: %s (%p, %zu, %p, %p) called for %%%lc (prec %d)\n",
+ __func__, info, n, argtypes, size, (wint_t) info->spec,
+ info->prec);
TEST_VERIFY_EXIT (n >= 1);
size_t nargs;
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 7 +++++++
stdio-common/Makefile | 1 +
stdio-common/tst-vfprintf-user-type.c | 11 +++++++----
3 files changed, 15 insertions(+), 4 deletions(-)
hooks/post-receive
--
GNU C Library master sources