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