]> sourceware.org Git - glibc.git/commitdiff
Replace %ld with %jd and cast to intmax_t
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 19 Dec 2014 21:49:58 +0000 (13:49 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 30 Dec 2014 16:05:47 +0000 (08:05 -0800)
ChangeLog
libio/tst-ftell-active-handler.c

index b97223225f0202d177424d7c6bcc8bee74e6e3b6..d5166dfc500ddb99b865ee3721e1ce7f6aa0e309 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,7 @@
        [BZ #17732]
        * io/test-utime.c (main): Replace %ld with %jd and cast to
        intmax_t.
+       * libio/tst-ftell-active-handler.c (do_append_test): Likewise.
 
 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
            H.J. Lu  <hongjiu.lu@intel.com>
index 7be75bc45ad8aa012bcc0aecbb33d415ed385a6f..186aec69407f28ad40ab41a459be5b9aed5c6481 100644 (file)
@@ -574,23 +574,23 @@ do_append_test (const char *filename)
 
   if (seek_ret != new_seek_ret)
     {
-      printf ("incorrectly modified file offset to %ld, should be %ld",
-             new_seek_ret, seek_ret);
+      printf ("incorrectly modified file offset to %jd, should be %jd",
+             (intmax_t)  new_seek_ret, (intmax_t) seek_ret);
       ret |= 1;
     }
   else
-    printf ("retained current file offset %ld", seek_ret);
+    printf ("retained current file offset %jd", (intmax_t) seek_ret);
 
   new_seek_ret = ftello (fp);
 
   if (seek_ret != new_seek_ret)
     {
-      printf (", ftello reported incorrect offset %ld, should be %ld\n",
-             new_seek_ret, seek_ret);
+      printf (", ftello reported incorrect offset %jd, should be %jd\n",
+             (intmax_t) new_seek_ret, (intmax_t) seek_ret);
       ret |= 1;
     }
   else
-    printf (", ftello reported correct offset %ld\n", seek_ret);
+    printf (", ftello reported correct offset %jd\n", (intmax_t) seek_ret);
 
   fclose (fp);
 
This page took 0.113714 seconds and 5 git commands to generate.