mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
Replace %ld with %jd and cast to intmax_t
This commit is contained in:
parent
41fad83083
commit
e401d5ca5d
@ -4,6 +4,8 @@
|
|||||||
* io/test-utime.c (main): Replace %ld with %jd and cast to
|
* io/test-utime.c (main): Replace %ld with %jd and cast to
|
||||||
intmax_t.
|
intmax_t.
|
||||||
* libio/tst-ftell-active-handler.c (do_append_test): Likewise.
|
* libio/tst-ftell-active-handler.c (do_append_test): Likewise.
|
||||||
|
* nptl/tst-mutex5.c: Include <stdint.h>.
|
||||||
|
(do_test): Replace %ld with %jd and cast to intmax_t.
|
||||||
|
|
||||||
2014-12-30 Andrew Senkevich <andrew.senkevich@intel.com>
|
2014-12-30 Andrew Senkevich <andrew.senkevich@intel.com>
|
||||||
H.J. Lu <hongjiu.lu@intel.com>
|
H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
#include <stdint.h>
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
|
|
||||||
@ -132,8 +133,8 @@ do_test (void)
|
|||||||
|
|
||||||
if (tv2.tv_sec < 2)
|
if (tv2.tv_sec < 2)
|
||||||
{
|
{
|
||||||
printf ("premature timeout: %ld.%06ld difference\n",
|
printf ("premature timeout: %jd.%06jd difference\n",
|
||||||
tv2.tv_sec, tv2.tv_usec);
|
(intmax_t) tv2.tv_sec, (intmax_t) tv2.tv_usec);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user