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