00db10
commit 1b8bf3518186cdc4f22037e5f226c34ffa143b89
00db10
Author: Joseph Myers <joseph@codesourcery.com>
00db10
Date:   Wed Dec 10 16:03:23 2014 +0000
00db10
00db10
    Fix tst-ftell-active-handler.c warning.
00db10
    
00db10
    A recent change to libio/tst-ftell-active-handler.c (postdating my
00db10
    last check for warnings on x86) introduced a format warning from a
00db10
    long int variable used with a %zu format.  This patch fixes it by
00db10
    using %ld for the format to match the variable.
00db10
    
00db10
    Tested for x86.
00db10
    
00db10
            * libio/tst-ftell-active-handler.c (do_ftruncate_test): Use %ld
00db10
            format for long int variable.
00db10
00db10
diff --git a/libio/tst-ftell-active-handler.c b/libio/tst-ftell-active-handler.c
00db10
index 59a4268ffb50f085..8549ccaafdf2623c 100644
00db10
--- a/libio/tst-ftell-active-handler.c
00db10
+++ b/libio/tst-ftell-active-handler.c
00db10
@@ -163,7 +163,7 @@ do_ftruncate_test (const char *filename)
00db10
 	     it.  */
00db10
 	  if (offset != new_offset)
00db10
 	    {
00db10
-	      printf ("Incorrect offset.  Expected %zu, but got %ld\n",
00db10
+	      printf ("Incorrect offset.  Expected %ld, but got %ld\n",
00db10
 		      offset, new_offset);
00db10
 
00db10
 	      ret |= 1;