From patchwork Fri Dec 19 22:16:11 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lu, Hongjiu" X-Patchwork-Id: 4379 Received: (qmail 20090 invoked by alias); 19 Dec 2014 22:16:14 -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 20080 invoked by uid 89); 19 Dec 2014 22:16:13 -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: mga02.intel.com X-ExtLoop1: 1 Date: Fri, 19 Dec 2014 14:16:11 -0800 From: "H.J. Lu" To: GNU C Library Subject: [PATCH 7/9] BZ #17732: Replace %ld with %jd and cast to intmax_t Message-ID: <20141219221611.GG672@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 | 1 + sysdeps/pthread/tst-timer.c | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index c85da35..a6348e4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -40,6 +40,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-19 H.J. Lu diff --git a/sysdeps/pthread/tst-timer.c b/sysdeps/pthread/tst-timer.c index 16adf3c..f310f6e 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) {