diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2014-12-19 13:51:13 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2014-12-30 08:06:35 -0800 |
commit | e401d5ca5d10c82f4e35bd9be7098b620ba04746 (patch) | |
tree | 92f157611f198f081e1aa8f0f6cfbe2cc175a186 /nptl | |
parent | 41fad83083a21800aafb08fbc888f05ae44d6c8a (diff) | |
download | glibc-e401d5ca5d10c82f4e35bd9be7098b620ba04746.zip glibc-e401d5ca5d10c82f4e35bd9be7098b620ba04746.tar.gz glibc-e401d5ca5d10c82f4e35bd9be7098b620ba04746.tar.bz2 |
Replace %ld with %jd and cast to intmax_t
Diffstat (limited to 'nptl')
-rw-r--r-- | nptl/tst-mutex5.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 <time.h> #include <unistd.h> #include <sys/time.h> +#include <stdint.h> #include <config.h> @@ -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; } } |