From: H.J. Lu Date: Fri, 19 Dec 2014 22:02:58 +0000 (-0800) Subject: Replace %ld with %jd and cast to intmax_t X-Git-Tag: glibc-2.21~138 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=37f469007dd6420bdc0607d0cda63513c42305d9;p=thirdparty%2Fglibc.git Replace %ld with %jd and cast to intmax_t --- diff --git a/ChangeLog b/ChangeLog index b3d16afc5bb..0eaa39d5b64 100644 --- 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 H.J. Lu diff --git a/sysdeps/pthread/tst-timer.c b/sysdeps/pthread/tst-timer.c index 16adf3c199d..f310f6e6a1b 100644 --- a/sysdeps/pthread/tst-timer.c +++ b/sysdeps/pthread/tst-timer.c @@ -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) {