Skip to content

Commit 3cb8bdb

Browse files
committed
lib/msun/tests: replace remaining printf() with debug()
Signed-off-by: Siva Mahadevan <[email protected]> Sponsored by: The FreeBSD Foundation
1 parent a4105a5 commit 3cb8bdb

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

lib/msun/tests/ctrig_test.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -323,9 +323,9 @@ ATF_TC_BODY(test_axes, tc)
323323

324324
test_odd_tol(csinhf, z, CMPLXL(sinhf(nums[i]), 0), FLT_ULP());
325325
test_even_tol(ccoshf, z, CMPLXL(coshf(nums[i]), 0), FLT_ULP());
326-
printf("%a %a\n", creal(z), cimag(z));
327-
printf("%a %a\n", creal(ctanhf(z)), cimag(ctanhf(z)));
328-
printf("%a\n", nextafterf(tanhf(nums[i]), INFINITY));
326+
debug("%a %a\n", creal(z), cimag(z));
327+
debug("%a %a\n", creal(ctanhf(z)), cimag(ctanhf(z)));
328+
debug("%a\n", nextafterf(tanhf(nums[i]), INFINITY));
329329
test_odd_tol(ctanhf, z, CMPLXL(tanhf(nums[i]), 0),
330330
1.3 * FLT_ULP());
331331
test_odd_tol(csinf, z, CMPLXL(sinf(nums[i]),

lib/msun/tests/fma_test.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ ATF_TC_WITHOUT_HEAD(zeroes);
472472
ATF_TC_BODY(zeroes, tc)
473473
{
474474
for (size_t i = 0; i < nitems(rmodes); i++) {
475-
printf("rmode = %d\n", rmodes[i]);
475+
debug("rmode = %d\n", rmodes[i]);
476476
fesetround(rmodes[i]);
477477
test_zeroes();
478478
}
@@ -482,7 +482,7 @@ ATF_TC_WITHOUT_HEAD(infinities);
482482
ATF_TC_BODY(infinities, tc)
483483
{
484484
for (size_t i = 0; i < nitems(rmodes); i++) {
485-
printf("rmode = %d\n", rmodes[i]);
485+
debug("rmode = %d\n", rmodes[i]);
486486
fesetround(rmodes[i]);
487487
test_infinities();
488488
}
@@ -500,7 +500,7 @@ ATF_TC_WITHOUT_HEAD(small_z);
500500
ATF_TC_BODY(small_z, tc)
501501
{
502502
for (size_t i = 0; i < nitems(rmodes); i++) {
503-
printf("rmode = %d\n", rmodes[i]);
503+
debug("rmode = %d\n", rmodes[i]);
504504
fesetround(rmodes[i]);
505505
test_small_z();
506506
}
@@ -511,7 +511,7 @@ ATF_TC_WITHOUT_HEAD(big_z);
511511
ATF_TC_BODY(big_z, tc)
512512
{
513513
for (size_t i = 0; i < nitems(rmodes); i++) {
514-
printf("rmode = %d\n", rmodes[i]);
514+
debug("rmode = %d\n", rmodes[i]);
515515
fesetround(rmodes[i]);
516516
test_big_z();
517517
}

0 commit comments

Comments
 (0)