Blame SOURCES/glibc-rh1505492-types-14.patch

147e83
commit 41fad83083a21800aafb08fbc888f05ae44d6c8a
147e83
Author: H.J. Lu <hjl.tools@gmail.com>
147e83
Date:   Fri Dec 19 13:49:58 2014 -0800
147e83
147e83
    Replace %ld with %jd and cast to intmax_t
147e83
147e83
diff --git a/libio/tst-ftell-active-handler.c b/libio/tst-ftell-active-handler.c
147e83
index 8549ccaafdf2623c..3d8030f32fcb3335 100644
147e83
--- a/libio/tst-ftell-active-handler.c
147e83
+++ b/libio/tst-ftell-active-handler.c
147e83
@@ -538,23 +538,23 @@ do_append_test (const char *filename)
147e83
 
147e83
   if (seek_ret != new_seek_ret)
147e83
     {
147e83
-      printf ("incorrectly modified file offset to %ld, should be %ld",
147e83
-	      new_seek_ret, seek_ret);
147e83
+      printf ("incorrectly modified file offset to %jd, should be %jd",
147e83
+	      (intmax_t)  new_seek_ret, (intmax_t) seek_ret);
147e83
       ret |= 1;
147e83
     }
147e83
   else
147e83
-    printf ("retained current file offset %ld", seek_ret);
147e83
+    printf ("retained current file offset %jd", (intmax_t) seek_ret);
147e83
 
147e83
   new_seek_ret = ftello (fp);
147e83
 
147e83
   if (seek_ret != new_seek_ret)
147e83
     {
147e83
-      printf (", ftello reported incorrect offset %ld, should be %ld\n",
147e83
-	      new_seek_ret, seek_ret);
147e83
+      printf (", ftello reported incorrect offset %jd, should be %jd\n",
147e83
+	      (intmax_t) new_seek_ret, (intmax_t) seek_ret);
147e83
       ret |= 1;
147e83
     }
147e83
   else
147e83
-    printf (", ftello reported correct offset %ld\n", seek_ret);
147e83
+    printf (", ftello reported correct offset %jd\n", (intmax_t) seek_ret);
147e83
 
147e83
   fclose (fp);
147e83