Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Oct 2021 18:16:24 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 4aed5c3c9d1d - main - time_t is pathological: use %j + cast to print it.
Message-ID:  <202110011816.191IGO91011373@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=4aed5c3c9d1d78986d3feba3f128187c59fb2dfe

commit 4aed5c3c9d1d78986d3feba3f128187c59fb2dfe
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2021-10-01 18:14:35 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2021-10-01 18:16:10 +0000

    time_t is pathological: use %j + cast to print it.
    
    Sponsored by:           Netflix
---
 contrib/netbsd-tests/lib/librt/t_sem.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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__ */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202110011816.191IGO91011373>