diff options
| author | Warner Losh <imp@FreeBSD.org> | 2021-10-01 18:14:35 +0000 |
|---|---|---|
| committer | Eric van Gyzen <vangyzen@FreeBSD.org> | 2022-03-02 23:39:34 +0000 |
| commit | e8bb416da1390eb9fd546f0b62d5c879dfd62893 (patch) | |
| tree | 27a715546e64137666c9f1870fc0857d4276b567 | |
| parent | 837e2f537c743efa1b38d752c5a93f8bf05dc4d1 (diff) | |
time_t is pathological: use %j + cast to print it.
Sponsored by: Netflix
(cherry picked from commit 4aed5c3c9d1d78986d3feba3f128187c59fb2dfe)
| -rw-r--r-- | contrib/netbsd-tests/lib/librt/t_sem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/netbsd-tests/lib/librt/t_sem.c b/contrib/netbsd-tests/lib/librt/t_sem.c index 1c4290c0b3fb..f542c6315528 100644 --- a/contrib/netbsd-tests/lib/librt/t_sem.c +++ b/contrib/netbsd-tests/lib/librt/t_sem.c @@ -406,7 +406,7 @@ ATF_TC_BODY(clockwait_relative_intr_remaining, tc) (remain.tv_nsec >= 25*1000*1000 || machine_is_virtual()) && remain.tv_nsec <= 75*1000*1000, "the remaining time was not as expected when a relative clockwait" - " got EINTR: %ld.%09ld", remain.tv_sec, remain.tv_nsec); + " got EINTR: %jd.%09ld", (uintmax_t)remain.tv_sec, remain.tv_nsec); } #endif /* __FreeBSD__ */ |
