about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--libio/tst-ftell-active-handler.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index bf140d33f4..ac8f6391e6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-12-10  Joseph Myers  <joseph@codesourcery.com>
+
+	* libio/tst-ftell-active-handler.c (do_ftruncate_test): Use %ld
+	format for long int variable.
+
 2014-12-10  Anders Kaseorg  <andersk@MIT.EDU>
 
 	[BZ #10672]
diff --git a/libio/tst-ftell-active-handler.c b/libio/tst-ftell-active-handler.c
index 6151554ffd..7be75bc45a 100644
--- a/libio/tst-ftell-active-handler.c
+++ b/libio/tst-ftell-active-handler.c
@@ -165,7 +165,7 @@ do_ftruncate_test (const char *filename)
 	     it.  */
 	  if (offset != new_offset)
 	    {
-	      printf ("Incorrect offset.  Expected %zu, but got %ld\n",
+	      printf ("Incorrect offset.  Expected %ld, but got %ld\n",
 		      offset, new_offset);
 
 	      ret |= 1;