From c253b180f8970b380345e900f17d799e97de5d93 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 27 Nov 2009 17:44:19 +0100 Subject: Macros for status and error messages --- src/relrod.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/relrod.c') diff --git a/src/relrod.c b/src/relrod.c index 7ee4dfe3..058075e9 100644 --- a/src/relrod.c +++ b/src/relrod.c @@ -86,8 +86,7 @@ void get_reflections(struct image *image, UnitCell *cell, double smax) res_max = sqrt(w2 + h2) / image->resolution; res_max *= (wavenumber / image->camera_len); } else { - fprintf(stderr, - "Unrecognised formulation mode in get_reflections" + ERROR("Unrecognised formulation mode in get_reflections" " (resolution cutoff calculation)\n"); return; } @@ -172,9 +171,8 @@ void get_reflections(struct image *image, UnitCell *cell, double smax) x /= image->pixel_size; y /= image->pixel_size; } else { - fprintf(stderr, - "Unrecognised formulation mode " - "in get_reflections\n"); + ERROR("Unrecognised formulation mode " + "in get_reflections\n"); return; } -- cgit v1.2.3