diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2014-12-19 13:52:08 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2014-12-30 08:07:05 -0800 |
commit | 6490d945378090db82be2759ff66719a980d9c1c (patch) | |
tree | 46a77e36f0556e5cead6ff5e17de5572648eb147 /posix | |
parent | e401d5ca5d10c82f4e35bd9be7098b620ba04746 (diff) | |
download | glibc-6490d945378090db82be2759ff66719a980d9c1c.zip glibc-6490d945378090db82be2759ff66719a980d9c1c.tar.gz glibc-6490d945378090db82be2759ff66719a980d9c1c.tar.bz2 |
Replace %ld with %jd and cast to intmax_t
Diffstat (limited to 'posix')
-rw-r--r-- | posix/tst-regex.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/posix/tst-regex.c b/posix/tst-regex.c index 7df0bd1..0e086ab 100644 --- a/posix/tst-regex.c +++ b/posix/tst-regex.c @@ -274,8 +274,8 @@ run_test (const char *expr, const char *mem, size_t memlen, int icase, finish.tv_sec -= start.tv_sec; } - printf ("elapsed time: %ld.%09ld sec\n", - finish.tv_sec, finish.tv_nsec); + printf ("elapsed time: %jd.%09jd sec\n", + (intmax_t) finish.tv_sec, (intmax_t) finish.tv_nsec); } } @@ -327,8 +327,8 @@ run_test (const char *expr, const char *mem, size_t memlen, int icase, mintime = finish; } } - printf ("elapsed time: %ld.%09ld sec\n", - mintime.tv_sec, mintime.tv_nsec); + printf ("elapsed time: %jd.%09jd sec\n", + (intmax_t) mintime.tv_sec, (intmax_t) mintime.tv_nsec); } #endif @@ -420,8 +420,8 @@ run_test_backwards (const char *expr, const char *mem, size_t memlen, finish.tv_sec -= start.tv_sec; } - printf ("elapsed time: %ld.%09ld sec\n", - finish.tv_sec, finish.tv_nsec); + printf ("elapsed time: %jd.%09jd sec\n", + (intmax_t) finish.tv_sec, (intmax_t) finish.tv_nsec); } } @@ -489,8 +489,8 @@ run_test_backwards (const char *expr, const char *mem, size_t memlen, mintime = finish; } } - printf ("elapsed time: %ld.%09ld sec\n", - mintime.tv_sec, mintime.tv_nsec); + printf ("elapsed time: %jd.%09jd sec\n", + (intmax_t) mintime.tv_sec, (intmax_t) mintime.tv_nsec); } #endif |