summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/misc.c b/misc.c
index d6ec408..687ce01 100644
--- a/misc.c
+++ b/misc.c
@@ -16,6 +16,7 @@
#include <stdio.h>
#include <assert.h>
+#include "diag.h"
#include "misc.h"
@@ -45,9 +46,7 @@ unsigned matrix_to_angle(const int m[6])
if (eq(m, 0, -1, 1, 0)) /* x-flipped, 270 deg */
return 270;
- fprintf(stderr, "unrecognized matrix %d %d %d %d\n",
- m[1], m[2], m[4], m[5]);
- exit(1);
+ fatal("unrecognized matrix %d %d %d %d\n", m[1], m[2], m[4], m[5]);
}