summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2014-12-19 13:49:58 -0800
committerH.J. Lu <hjl.tools@gmail.com>2014-12-30 08:05:47 -0800
commit41fad83083a21800aafb08fbc888f05ae44d6c8a (patch)
tree4911726ebc5af59da219069b5ee94f6373a32fef
parentReplace %ld with %jd and cast to intmax_t (diff)
downloadglibc-41fad83083a21800aafb08fbc888f05ae44d6c8a.tar.gz
glibc-41fad83083a21800aafb08fbc888f05ae44d6c8a.tar.bz2
glibc-41fad83083a21800aafb08fbc888f05ae44d6c8a.zip
Replace %ld with %jd and cast to intmax_t
-rw-r--r--ChangeLog1
-rw-r--r--libio/tst-ftell-active-handler.c12
2 files changed, 7 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index b97223225f..d5166dfc50 100644
--- 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>
diff --git a/libio/tst-ftell-active-handler.c b/libio/tst-ftell-active-handler.c
index 7be75bc45a..186aec6940 100644
--- a/libio/tst-ftell-active-handler.c
+++ b/libio/tst-ftell-active-handler.c
@@ -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);