summaryrefslogtreecommitdiff
path: root/tests/tsinh_cosh.c
diff options
context:
space:
mode:
authorthevenyp <thevenyp@280ebfd0-de03-0410-8827-d642c229c3f4>2007-12-14 08:56:31 +0000
committerthevenyp <thevenyp@280ebfd0-de03-0410-8827-d642c229c3f4>2007-12-14 08:56:31 +0000
commit8900bd7ee687149fe720836ec2e7e2e29ff93f91 (patch)
tree43b9fa7a5cbd5133c2c5f73656ccdf304538a8ab /tests/tsinh_cosh.c
parent2294fc9713fee66c03325b72cad7c8cd27baf951 (diff)
downloadmpfr-8900bd7ee687149fe720836ec2e7e2e29ff93f91.tar.gz
simplify error output code
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5080 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tsinh_cosh.c')
-rw-r--r--tests/tsinh_cosh.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/tsinh_cosh.c b/tests/tsinh_cosh.c
index 0bab30da3..ead3e5985 100644
--- a/tests/tsinh_cosh.c
+++ b/tests/tsinh_cosh.c
@@ -28,17 +28,17 @@ MA 02110-1301, USA. */
static void
failed (mpfr_t x, mpfr_t esh, mpfr_t gsh, mpfr_t ech, mpfr_t gch)
{
- fprintf (stdout, "error : mpfr_sinh_cosh (x) x = ");
+ printf ("error : mpfr_sinh_cosh (x) x = ");
mpfr_out_str (stdout, 10, 0, x, GMP_RNDD);
- fprintf (stdout, "\nsinh(x) expected ");
+ printf ("\nsinh(x) expected ");
mpfr_out_str (stdout, 10, 0, esh, GMP_RNDD);
- fprintf (stdout, "\n got ");
+ printf ("\n got ");
mpfr_out_str (stdout, 10, 0, gsh, GMP_RNDD);
- fprintf (stdout, "\ncosh(x) expected ");
+ printf ("\ncosh(x) expected ");
mpfr_out_str (stdout, 10, 0, ech, GMP_RNDD);
- fprintf (stdout, "\n got ");
+ printf ("\n got ");
mpfr_out_str (stdout, 10, 0, gch, GMP_RNDD);
- fprintf (stdout, "\n");
+ putchar ('\n');
mpfr_clears (x, esh, gsh, ech, gch, (void *) 0);
exit (1);