]> 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:02:58 +0000 (14:02 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 30 Dec 2014 16:09:06 +0000 (08:09 -0800)
ChangeLog
sysdeps/pthread/tst-timer.c

index b3d16afc5bb33b6af98c27acb0b381ebd6bc9038..0eaa39d5b64bb430608fe240b1f62e429c56c12a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -24,6 +24,7 @@
        (do_test): Likewise.
        * stdio-common/tst-fmemopen2.c (do_test): Replace %ld with %jd
        and cast to intmax_t.
+       * sysdeps/pthread/tst-timer.c (main): Likewise.
 
 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
            H.J. Lu  <hongjiu.lu@intel.com>
index 16adf3c199d6f6c35d9c1ca49c67e89e4accd85b..f310f6e6a1ba08bcb384184a8f3112176555d989 100644 (file)
@@ -90,13 +90,13 @@ main (void)
 
   setvbuf (stdout, 0, _IOLBF, 0);
 
-  printf ("clock_gettime returned %d, timespec = { %ld, %ld }\n",
-         retval, ts.tv_sec, ts.tv_nsec);
+  printf ("clock_gettime returned %d, timespec = { %jd, %jd }\n",
+         retval, (intmax_t) ts.tv_sec, (intmax_t) ts.tv_nsec);
 
   retval = clock_getres (CLOCK_REALTIME, &ts);
 
-  printf ("clock_getres returned %d, timespec = { %ld, %ld }\n",
-         retval, ts.tv_sec, ts.tv_nsec);
+  printf ("clock_getres returned %d, timespec = { %jd, %jd }\n",
+         retval, (intmax_t) ts.tv_sec, (intmax_t) ts.tv_nsec);
 
   if (timer_create (CLOCK_REALTIME, &sigev1, &timer_sig) != 0)
     {