summaryrefslogtreecommitdiff
path: root/src/ai.c
diff options
context:
space:
mode:
authorthevenyp <thevenyp@280ebfd0-de03-0410-8827-d642c229c3f4>2011-03-17 06:30:11 +0000
committerthevenyp <thevenyp@280ebfd0-de03-0410-8827-d642c229c3f4>2011-03-17 06:30:11 +0000
commit2bed9ef1b8d478fb86dfd522383b901cdac852ec (patch)
treede6b918413225754dea3b3b6dae6c2a50658cb4e /src/ai.c
parentd6fa82d504df0d9bd81bc3e4aa465e2781b9b98c (diff)
downloadmpfr-2bed9ef1b8d478fb86dfd522383b901cdac852ec.tar.gz
Get rid of deprecated register_printf_function function in logging system.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7575 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/ai.c')
-rw-r--r--src/ai.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ai.c b/src/ai.c
index 4ca0d1ada..95c2e0b50 100644
--- a/src/ai.c
+++ b/src/ai.c
@@ -68,7 +68,9 @@ mpfr_ai1 (mpfr_ptr y, mpfr_srcptr x, mpfr_rnd_t rnd)
int test1, test2;
/* Logging */
- MPFR_LOG_FUNC ( ("x[%#R]=%R rnd=%d", x, x, rnd), ("y[%#R]=%R", y, y) );
+ MPFR_LOG_FUNC (
+ ("x[%Pu]=%.*Rg rnd=%d", mpfr_get_prec (x), mpfr_log_prec, x, rnd),
+ ("y[%Pu]=%.*Rg", mpfr_get_prec (y), mpfr_log_prec, y) );
/* Special cases */
if (MPFR_UNLIKELY (MPFR_IS_SINGULAR (x)))
@@ -333,7 +335,9 @@ mpfr_ai2 (mpfr_ptr y, mpfr_srcptr x, mpfr_rnd_t rnd)
int test0, test1;
/* Logging */
- MPFR_LOG_FUNC ( ("x[%#R]=%R rnd=%d", x, x, rnd), ("y[%#R]=%R", y, y) );
+ MPFR_LOG_FUNC (
+ ("x[%Pu]=%.*Rg rnd=%d", mpfr_get_prec (x), mpfr_log_prec, x, rnd),
+ ("y[%Pu]=%.*Rg", mpfr_get_prec (y), mpfr_log_prec, y));
/* Special cases */
if (MPFR_UNLIKELY (MPFR_IS_SINGULAR (x)))