about summary refs log tree commit diff
path: root/stdio-common
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2014-12-19 14:01:40 -0800
committerH.J. Lu <hjl.tools@gmail.com>2014-12-30 08:08:29 -0800
commitad86fbc3d5e4bab709d162f40e5d1a19ab8f3f6b (patch)
treef7151cd44ec4a9f34c5215970670dc07c4af08ee /stdio-common
parent5d619de4610fa00d0b633e1916c49e59824440ff (diff)
downloadglibc-ad86fbc3d5e4bab709d162f40e5d1a19ab8f3f6b.tar.gz
glibc-ad86fbc3d5e4bab709d162f40e5d1a19ab8f3f6b.tar.xz
glibc-ad86fbc3d5e4bab709d162f40e5d1a19ab8f3f6b.zip
Replace %ld with %jd and cast to intmax_t
Diffstat (limited to 'stdio-common')
-rw-r--r--stdio-common/tst-fmemopen2.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/stdio-common/tst-fmemopen2.c b/stdio-common/tst-fmemopen2.c
index c2a4baace9..e9d8b634fe 100644
--- a/stdio-common/tst-fmemopen2.c
+++ b/stdio-common/tst-fmemopen2.c
@@ -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);