]> xenbits.xensource.com Git - people/royger/freebsd.git/commitdiff
time_t is pathological: use %j + cast to print it.
authorWarner Losh <imp@FreeBSD.org>
Fri, 1 Oct 2021 18:14:35 +0000 (12:14 -0600)
committerEric van Gyzen <vangyzen@FreeBSD.org>
Wed, 2 Mar 2022 23:39:34 +0000 (17:39 -0600)
Sponsored by: Netflix

(cherry picked from commit 4aed5c3c9d1d78986d3feba3f128187c59fb2dfe)

contrib/netbsd-tests/lib/librt/t_sem.c

index 1c4290c0b3fb997704534a6607389a5918b29c16..f542c63155289e1a3378b1c42d6e961d5b2e4d1b 100644 (file)
@@ -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__ */