From eb669ff5bf2c8093b7e88b75e745ce3f1f4bd8a4 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Fri, 10 May 2019 09:35:18 -0300 Subject: support: Fix timespec printf The patch print timespec members as intmax_t instead of long int. It avoid the -Werror=format= build issue on x32: timespec.c: In function 'test_timespec_before_impl': timespec.c:32:23: error: format '%ld' expects argument of type 'long int', but argument 4 has type '__time_t' {aka 'const long long int'} [-Werror=format=] Checked on x86_64-linux-gnu-x32, x86_64-linux-gnu, and i686-linux-gnu. * support/timespec.c (test_timespec_before_impl, test_timespec_equal_or_after_impl): print timespec member as intmax_t insted of long int. Reviewed-by: Florian Weimer --- ChangeLog | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 47a2a9ef19..8f6b8c82a6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2019-05-09 Adhemerval Zanella + + * support/timespec.c (test_timespec_before_impl, + test_timespec_equal_or_after_impl): print timespec member as intmax_t + insted of long int. + 2019-05-09 Mike Crowe * nptl/tst-abstime.c: Use libsupport. -- cgit 1.4.1