S390: Get rid of
diff mbox

Message ID m6mt4r$d7e$2@ger.gmane.org
State New
Headers show

Commit Message

Stefan Liebler Dec. 15, 2014, 3:01 p.m. UTC
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.

Comments

Roland McGrath Dec. 16, 2014, 5:51 p.m. UTC | #1
OK

Patch
diff mbox

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;