From: H.J. Lu Date: Fri, 19 Dec 2014 21:51:13 +0000 (-0800) Subject: Replace %ld with %jd and cast to intmax_t X-Git-Tag: upstream/2.30~6559 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e401d5ca5d10c82f4e35bd9be7098b620ba04746;p=external%2Fglibc.git Replace %ld with %jd and cast to intmax_t --- diff --git a/ChangeLog b/ChangeLog index d5166df..075ecbc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,8 @@ * io/test-utime.c (main): Replace %ld with %jd and cast to intmax_t. * libio/tst-ftell-active-handler.c (do_append_test): Likewise. + * nptl/tst-mutex5.c: Include . + (do_test): Replace %ld with %jd and cast to intmax_t. 2014-12-30 Andrew Senkevich H.J. Lu diff --git a/nptl/tst-mutex5.c b/nptl/tst-mutex5.c index 6988840..48e1ea8 100644 --- a/nptl/tst-mutex5.c +++ b/nptl/tst-mutex5.c @@ -22,6 +22,7 @@ #include #include #include +#include #include @@ -132,8 +133,8 @@ do_test (void) if (tv2.tv_sec < 2) { - printf ("premature timeout: %ld.%06ld difference\n", - tv2.tv_sec, tv2.tv_usec); + printf ("premature timeout: %jd.%06jd difference\n", + (intmax_t) tv2.tv_sec, (intmax_t) tv2.tv_usec); return 1; } }