diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2014-12-19 14:04:35 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2014-12-30 08:09:43 -0800 |
commit | fe342f50136919f1945d9a03964ee614c97d8659 (patch) | |
tree | ad85cb04084740b896e5ab476c6f1df5d7ac36f0 /time/clocktest.c | |
parent | 37f469007dd6420bdc0607d0cda63513c42305d9 (diff) | |
download | glibc-fe342f50136919f1945d9a03964ee614c97d8659.zip glibc-fe342f50136919f1945d9a03964ee614c97d8659.tar.gz glibc-fe342f50136919f1945d9a03964ee614c97d8659.tar.bz2 |
Replace %ld with %jd and cast to intmax_t
Diffstat (limited to 'time/clocktest.c')
-rw-r--r-- | time/clocktest.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/time/clocktest.c b/time/clocktest.c index f2b3ea7..2e6457d 100644 --- a/time/clocktest.c +++ b/time/clocktest.c @@ -28,8 +28,8 @@ main (int argc, char ** argv) while (!gotit); stop = clock (); - printf ("%ld clock ticks per second (start=%ld,stop=%ld)\n", - stop - start, start, stop); + printf ("%jd clock ticks per second (start=%jd,stop=%jd)\n", + (intmax_t) (stop - start), (intmax_t) start, (intmax_t) stop); printf ("CLOCKS_PER_SEC=%ld, sysconf(_SC_CLK_TCK)=%ld\n", CLOCKS_PER_SEC, sysconf(_SC_CLK_TCK)); return 0; |