]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Replace %ld with %jd and cast to intmax_t
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 19 Dec 2014 22:01:40 +0000 (14:01 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 30 Dec 2014 16:08:29 +0000 (08:08 -0800)
ChangeLog
stdio-common/tst-fmemopen2.c

index 7def2b67a154c10e35e559602a5a56019009d3a9..b3d16afc5bb33b6af98c27acb0b381ebd6bc9038 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -22,6 +22,8 @@
        * rt/tst-timer4.c: Include <stdint.h>.
        (check_ts): Replace %ld with %jd and cast to intmax_t.
        (do_test): Likewise.
+       * stdio-common/tst-fmemopen2.c (do_test): Replace %ld with %jd
+       and cast to intmax_t.
 
 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
            H.J. Lu  <hongjiu.lu@intel.com>
index c2a4baace9c83604359c77abe2ee3c935125ef2d..e9d8b634feb37b1758cce1c7d78c9c8af58b0968 100644 (file)
@@ -21,14 +21,15 @@ do_test (void)
   off_t o = ftello (fp);
   if (o != nstr)
     {
-      printf ("first ftello returned %ld, expected %zu\n", o, nstr);
+      printf ("first ftello returned %jd, expected %zu\n",
+             (intmax_t) o, nstr);
       result = 1;
     }
   rewind (fp);
   o = ftello (fp);
   if (o != 0)
     {
-      printf ("second ftello returned %ld, expected 0\n", o);
+      printf ("second ftello returned %jd, expected 0\n", (intmax_t) o);
       result = 1;
     }
   if (fseeko (fp, 0, SEEK_END) != 0)
@@ -39,7 +40,8 @@ do_test (void)
   o = ftello (fp);
   if (o != nstr)
     {
-      printf ("third ftello returned %ld, expected %zu\n", o, nstr);
+      printf ("third ftello returned %jd, expected %zu\n",
+             (intmax_t) o, nstr);
       result = 1;
     }
   rewind (fp);
@@ -50,7 +52,8 @@ do_test (void)
   o = ftello (fp);
   if (o != nstr2)
     {
-      printf ("fourth ftello returned %ld, expected %zu\n", o, nstr2);
+      printf ("fourth ftello returned %jd, expected %zu\n",
+             (intmax_t) o, nstr2);
       result = 1;
     }
   fclose (fp);