[PATCH] S390: Get rid of
Stefan Liebler
stli@linux.vnet.ibm.com
Mon Dec 15 15:03:00 GMT 2014
On 12/12/2014 10:10 PM, Roland McGrath wrote:
> I think %td is the right format for ptrdiff_t.
>
Yes you are right.
Here is the new patch version, which uses %td instead of %Zd.
Ok to commit?
---
2014-12-15 Stefan Liebler <stli@linux.vnet.ibm.com>
* libio/tst-widetext.c (do_test):
Use format type %td instead of %Zd for ptrdiff_t
in order to avoid format warning.
-------------- next part --------------
diff --git a/libio/tst-widetext.c b/libio/tst-widetext.c
index acab72b..83345d7 100644
--- a/libio/tst-widetext.c
+++ b/libio/tst-widetext.c
@@ -291,7 +291,7 @@ do_test (void)
{
if (fgetws (wcp, &wc2buf[wcsize] - wcp + 1, fp) == NULL)
{
- printf ("%u: short read using fgetws (only %Zd of %Zd)\n",
+ printf ("%u: short read using fgetws (only %td of %Zd)\n",
__LINE__, wcp - wc2buf, wcsize);
status = 1;
break;
More information about the Libc-alpha
mailing list