about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--libio/tst-widetext.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 61bbbc941d..1a79665f7e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2014-12-17  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.
+
 2014-12-17  Andreas Schwab  <schwab@suse.de>
 
 	* nscd/mem.c (gc): Add size_t cast to match printf format.
diff --git a/libio/tst-widetext.c b/libio/tst-widetext.c
index acab72b708..83345d7203 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;