The branch main has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=fb99c0ba60dc464aab2102c4395791e151d438c6
commit fb99c0ba60dc464aab2102c4395791e151d438c6 Author: Dag-Erling Smørgrav <[email protected]> AuthorDate: 2025-11-11 15:25:41 +0000 Commit: Dag-Erling Smørgrav <[email protected]> CommitDate: 2025-11-11 15:25:41 +0000 sound tests: Actually fix format strings Fixes: eb95b990f8eb ("sound tests: Fix format specified for kevent.data") --- tests/sys/sound/polling.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/sys/sound/polling.c b/tests/sys/sound/polling.c index a2cecb47a27c..b7a328d13d4c 100644 --- a/tests/sys/sound/polling.c +++ b/tests/sys/sound/polling.c @@ -34,6 +34,7 @@ #include <atf-c.h> #include <errno.h> #include <fcntl.h> +#include <inttypes.h> #include <poll.h> #include <unistd.h> @@ -93,7 +94,7 @@ ATF_TC_BODY(poll_kqueue, tc) ATF_REQUIRE_MSG(kevent(kq, NULL, 0, &ev, 1, NULL) == 1, FMT_ERR("kevent")); ATF_REQUIRE_MSG((ev.flags & EV_ERROR) == 0, "EV_ERROR is set"); - ATF_REQUIRE_MSG(ev.data != 0, "data is %lld", ev.data); + ATF_REQUIRE_MSG(ev.data != 0, "data is %" PRId64, ev.data); ATF_REQUIRE_MSG(read(fd, buf, sizeof(buf)) > 0, FMT_ERR("read")); EV_SET(&ev, fd, EVFILT_READ, EV_DELETE, 0, 0, 0); @@ -108,7 +109,7 @@ ATF_TC_BODY(poll_kqueue, tc) ATF_REQUIRE_MSG(kevent(kq, NULL, 0, &ev, 1, NULL) == 1, FMT_ERR("kevent")); ATF_REQUIRE_MSG((ev.flags & EV_ERROR) == 0, "EV_ERROR is set"); - ATF_REQUIRE_MSG(ev.data != 0, "data is %lld", ev.data); + ATF_REQUIRE_MSG(ev.data != 0, "data is %" PRId64, ev.data); ATF_REQUIRE_MSG(write(fd, buf, sizeof(buf)) > 0, FMT_ERR("write")); EV_SET(&ev, fd, EVFILT_WRITE, EV_DELETE, 0, 0, 0);
