1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

Replace %ld with %jd and cast to intmax_t

This commit is contained in:
H.J. Lu
2014-12-19 13:51:13 -08:00
parent 41fad83083
commit e401d5ca5d
2 changed files with 5 additions and 2 deletions

View File

@ -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;
}
}