mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-09 23:00:07 +00:00
Replace %ld with %jd and cast to intmax_t
This commit is contained in:
parent
e401d5ca5d
commit
6490d94537
@ -6,6 +6,8 @@
|
||||
* 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.
|
||||
* posix/tst-regex.c (run_test): Likewise.
|
||||
(run_test_backwards): Likewise.
|
||||
|
||||
2014-12-30 Andrew Senkevich <andrew.senkevich@intel.com>
|
||||
H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user