aboutsummaryrefslogtreecommitdiff
path: root/src/relrod.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2009-11-27 17:44:19 +0100
committerThomas White <taw@physics.org>2009-11-27 17:44:19 +0100
commitc253b180f8970b380345e900f17d799e97de5d93 (patch)
tree17682243ca381b51bae40b3cb65bff0a4c791792 /src/relrod.c
parentef92cb3eebfb74c865cf0e10266ba8c46ffc8a9a (diff)
Macros for status and error messages
Diffstat (limited to 'src/relrod.c')
-rw-r--r--src/relrod.c8
1 files changed, 3 insertions, 5 deletions
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;
}