From patchwork Fri Dec 19 22:13:33 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lu, Hongjiu" X-Patchwork-Id: 4375 Received: (qmail 14150 invoked by alias); 19 Dec 2014 22:13:41 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 14054 invoked by uid 89); 19 Dec 2014 22:13:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL, BAYES_00, NO_DNS_FOR_FROM, T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: mga09.intel.com X-ExtLoop1: 1 Date: Fri, 19 Dec 2014 14:13:33 -0800 From: "H.J. Lu" To: GNU C Library Subject: [PATCH 3/9] BZ #17732: Replace %ld with %jd and cast to intmax_t Message-ID: <20141219221332.GC672@intel.com> Reply-To: "H.J. Lu" MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) OK to install? H.J. --- ChangeLog | 2 ++ nptl/tst-mutex5.c | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9cec358..cb00ebe 100644 --- a/ChangeLog +++ b/ChangeLog @@ -20,6 +20,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-19 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; } }