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