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.28.9000-268-g00c86a3
- From: azanella at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 7 Nov 2018 13:11:59 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.28.9000-268-g00c86a3
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 00c86a37d1b63044e3169d1f2ebec23447c73f79 (commit)
from 1df872fd74f730bcae3df201a229195445d2e18a (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=00c86a37d1b63044e3169d1f2ebec23447c73f79
commit 00c86a37d1b63044e3169d1f2ebec23447c73f79
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Wed Nov 7 11:09:02 2018 -0200
support: Fix printf format for TEST_COMPARE_STRING
Fix the following on 32 bits targets:
support_test_compare_string.c: In function â??support_test_compare_stringâ??:
support_test_compare_string.c:80:37: error: format â??%luâ?? expects argument of
type â??long unsigned intâ??, but argument 2 has type â??size_tâ?? {aka â??unsigned intâ??}
[-Werror=format=]
printf (" string length: %lu bytes\n", left_length);
~~^ ~~~~~~~~~~~
%u
Checked on arm-linux-gnueabihf.
* support/support_test_compare_string.c
(support_test_compare_string): Fix printf format.
diff --git a/ChangeLog b/ChangeLog
index 58dcf0c..3dcf4b3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
+
+ * support/support_test_compare_string.c
+ (support_test_compare_string): Fix printf format.
+
2018-11-07 Florian Weimer <fweimer@redhat.com>
Implement TEST_COMPARE_STRING.
diff --git a/support/support_test_compare_string.c b/support/support_test_compare_string.c
index 9958aae..a76ba8e 100644
--- a/support/support_test_compare_string.c
+++ b/support/support_test_compare_string.c
@@ -77,7 +77,7 @@ support_test_compare_string (const char *left, const char *right,
support_record_failure ();
printf ("%s:%d: error: blob comparison failed\n", file, line);
if (left_length == right_length && right != NULL && left != NULL)
- printf (" string length: %lu bytes\n", left_length);
+ printf (" string length: %zu bytes\n", left_length);
else
{
report_length ("left", left, left_length);
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 5 +++++
support/support_test_compare_string.c | 2 +-
2 files changed, 6 insertions(+), 1 deletions(-)
hooks/post-receive
--
GNU C Library master sources