The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/src/commit/?id=d03c9b8f662466537753056608d6a64d8c5513c3
commit d03c9b8f662466537753056608d6a64d8c5513c3 Author: Siva Mahadevan <[email protected]> AuthorDate: 2025-10-08 21:04:28 +0000 Commit: Li-Wen Hsu <[email protected]> CommitDate: 2025-12-17 10:42:53 +0000 lib/msun/tests: Replace remaining printf() with debug() Signed-off-by: Siva Mahadevan <[email protected]> MFC after: 3 days Sponsored by: The FreeBSD Foundation Pull Request: https://github.com/freebsd/freebsd-src/pull/1871 --- lib/msun/tests/ctrig_test.c | 6 +++--- lib/msun/tests/fma_test.c | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/msun/tests/ctrig_test.c b/lib/msun/tests/ctrig_test.c index ac1b79f2a1ce..2a5f8b5982b8 100644 --- a/lib/msun/tests/ctrig_test.c +++ b/lib/msun/tests/ctrig_test.c @@ -323,9 +323,9 @@ ATF_TC_BODY(test_axes, tc) test_odd_tol(csinhf, z, CMPLXL(sinhf(nums[i]), 0), FLT_ULP()); test_even_tol(ccoshf, z, CMPLXL(coshf(nums[i]), 0), FLT_ULP()); - printf("%a %a\n", creal(z), cimag(z)); - printf("%a %a\n", creal(ctanhf(z)), cimag(ctanhf(z))); - printf("%a\n", nextafterf(tanhf(nums[i]), INFINITY)); + debug("%a %a\n", creal(z), cimag(z)); + debug("%a %a\n", creal(ctanhf(z)), cimag(ctanhf(z))); + debug("%a\n", nextafterf(tanhf(nums[i]), INFINITY)); test_odd_tol(ctanhf, z, CMPLXL(tanhf(nums[i]), 0), 1.3 * FLT_ULP()); test_odd_tol(csinf, z, CMPLXL(sinf(nums[i]), diff --git a/lib/msun/tests/fma_test.c b/lib/msun/tests/fma_test.c index f1aa855df6f2..2cbfd6d6c296 100644 --- a/lib/msun/tests/fma_test.c +++ b/lib/msun/tests/fma_test.c @@ -472,7 +472,7 @@ ATF_TC_WITHOUT_HEAD(zeroes); ATF_TC_BODY(zeroes, tc) { for (size_t i = 0; i < nitems(rmodes); i++) { - printf("rmode = %d\n", rmodes[i]); + debug("rmode = %d\n", rmodes[i]); fesetround(rmodes[i]); test_zeroes(); } @@ -482,7 +482,7 @@ ATF_TC_WITHOUT_HEAD(infinities); ATF_TC_BODY(infinities, tc) { for (size_t i = 0; i < nitems(rmodes); i++) { - printf("rmode = %d\n", rmodes[i]); + debug("rmode = %d\n", rmodes[i]); fesetround(rmodes[i]); test_infinities(); } @@ -500,7 +500,7 @@ ATF_TC_WITHOUT_HEAD(small_z); ATF_TC_BODY(small_z, tc) { for (size_t i = 0; i < nitems(rmodes); i++) { - printf("rmode = %d\n", rmodes[i]); + debug("rmode = %d\n", rmodes[i]); fesetround(rmodes[i]); test_small_z(); } @@ -511,7 +511,7 @@ ATF_TC_WITHOUT_HEAD(big_z); ATF_TC_BODY(big_z, tc) { for (size_t i = 0; i < nitems(rmodes); i++) { - printf("rmode = %d\n", rmodes[i]); + debug("rmode = %d\n", rmodes[i]); fesetround(rmodes[i]); test_big_z(); }
