Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Nov 2025 13:22:47 GMT
From:      Christos Margiolis <christos@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: eb95b990f8eb - main - sound tests: Fix format specified for kevent.data
Message-ID:  <202511111322.5ABDMlde084910@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by christos:

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

commit eb95b990f8ebfb85ce6e4d7d16305746b5eddcde
Author:     Christos Margiolis <christos@FreeBSD.org>
AuthorDate: 2025-11-11 13:21:22 +0000
Commit:     Christos Margiolis <christos@FreeBSD.org>
CommitDate: 2025-11-11 13:22:28 +0000

    sound tests: Fix format specified for kevent.data
    
    Reported by:    CI
    Fixes:          dd81b19ef236 ("sound tests: Test polling")
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
---
 tests/sys/sound/polling.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/sys/sound/polling.c b/tests/sys/sound/polling.c
index 79b731fee00a..a2cecb47a27c 100644
--- a/tests/sys/sound/polling.c
+++ b/tests/sys/sound/polling.c
@@ -93,7 +93,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 %ld", ev.data);
+	ATF_REQUIRE_MSG(ev.data != 0, "data is %lld", 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 +108,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 %ld", ev.data);
+	ATF_REQUIRE_MSG(ev.data != 0, "data is %lld", 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);


home | help

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