git: da8c3d21490f - main - tests: Fix format strings
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 26 May 2023 21:38:53 UTC
The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=da8c3d21490fe791f8e4405216d5490dbea4dbe5 commit da8c3d21490fe791f8e4405216d5490dbea4dbe5 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2023-05-26 21:38:06 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2023-05-26 21:38:06 +0000 tests: Fix format strings Reported by: Jenkins Fixes: 844942888f7d ("tests: Add a simple regression test for ptrace(PT_SC_REMOTE)") --- tests/sys/kern/ptrace_test.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/sys/kern/ptrace_test.c b/tests/sys/kern/ptrace_test.c index 49670fbf102e..0a0f219d6f36 100644 --- a/tests/sys/kern/ptrace_test.c +++ b/tests/sys/kern/ptrace_test.c @@ -4344,8 +4344,8 @@ ATF_TC_BODY(ptrace__PT_SC_REMOTE_getpid, tc) ATF_REQUIRE_MSG(pscr.pscr_ret.sr_error == 0, "remote getpid failed with error %d", pscr.pscr_ret.sr_error); ATF_REQUIRE_MSG(pscr.pscr_ret.sr_retval[0] == fpid, - "unexpected return value %lu instead of %d", - pscr.pscr_ret.sr_retval[0], fpid); + "unexpected return value %jd instead of %d", + (intmax_t)pscr.pscr_ret.sr_retval[0], fpid); wpid = waitpid(fpid, &status, 0); REQUIRE_EQ(wpid, fpid); @@ -4360,8 +4360,8 @@ ATF_TC_BODY(ptrace__PT_SC_REMOTE_getpid, tc) ATF_REQUIRE_MSG(pscr.pscr_ret.sr_error == 0, "remote getppid failed with error %d", pscr.pscr_ret.sr_error); ATF_REQUIRE_MSG(pscr.pscr_ret.sr_retval[0] == getpid(), - "unexpected return value %lu instead of %d", - pscr.pscr_ret.sr_retval[0], fpid); + "unexpected return value %jd instead of %d", + (intmax_t)pscr.pscr_ret.sr_retval[0], fpid); wpid = waitpid(fpid, &status, 0); REQUIRE_EQ(wpid, fpid);