diff options
author | Thomas White <taw@physics.org> | 2009-11-27 17:44:19 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2009-11-27 17:44:19 +0100 |
commit | c253b180f8970b380345e900f17d799e97de5d93 (patch) | |
tree | 17682243ca381b51bae40b3cb65bff0a4c791792 /src/pattern_sim.c | |
parent | ef92cb3eebfb74c865cf0e10266ba8c46ffc8a9a (diff) |
Macros for status and error messages
Diffstat (limited to 'src/pattern_sim.c')
-rw-r--r-- | src/pattern_sim.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pattern_sim.c b/src/pattern_sim.c index 377dfa79..f449b9c1 100644 --- a/src/pattern_sim.c +++ b/src/pattern_sim.c @@ -121,7 +121,7 @@ static struct quaternion read_quaternion() return quat; } else { - fprintf(stderr, "Invalid rotation '%s'\n", line); + ERROR("Invalid rotation '%s'\n", line); } } while ( 1 ); @@ -198,7 +198,7 @@ int main(int argc, char *argv[]) image.molecule = NULL; /* Splurge a few useful numbers */ - printf("Wavelength is %f nm\n", image.lambda/1.0e-9); + STATUS("Wavelength is %f nm\n", image.lambda/1.0e-9); do { @@ -210,7 +210,7 @@ int main(int argc, char *argv[]) } if ( quaternion_valid(image.orientation) ) { - fprintf(stderr, "Orientation modulus is not zero!\n"); + ERROR("Orientation modulus is not zero!\n"); return 1; } |