summaryrefslogtreecommitdiff
path: root/tests/tconst_log2.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2012-03-08 09:12:38 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2012-03-08 09:12:38 +0000
commitdb0f9e612fcdd44248f0bde30539942d8e5f4c50 (patch)
tree2f7766eff80049f0ccf742a3e9cf96c495cedd33 /tests/tconst_log2.c
parenteb5ac8dd30d1777bd1a9fd6fd55890f7f3684fa6 (diff)
downloadmpfr-db0f9e612fcdd44248f0bde30539942d8e5f4c50.tar.gz
[tests/tconst_log2.c] Replaced mpfr_printf by mpfr_out_str.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8076 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tconst_log2.c')
-rw-r--r--tests/tconst_log2.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/tests/tconst_log2.c b/tests/tconst_log2.c
index 0394d0005..8e510c08d 100644
--- a/tests/tconst_log2.c
+++ b/tests/tconst_log2.c
@@ -78,9 +78,15 @@ check_large (void)
if (mpfr_cmp (x, y) != 0)
{
printf ("const_log2: error for large prec\n");
- mpfr_printf ("x=%Ra\n", x);
- mpfr_printf ("y=%Ra\n", y);
- mpfr_printf ("z=%Ra\n", z);
+ printf ("x = ");
+ mpfr_out_str (stdout, 16, 0, x, MPFR_RNDN);
+ printf ("\n");
+ printf ("y = ");
+ mpfr_out_str (stdout, 16, 0, y, MPFR_RNDN);
+ printf ("\n");
+ printf ("z = ");
+ mpfr_out_str (stdout, 16, 0, z, MPFR_RNDN);
+ printf ("\n");
exit (1);
}