]> git.tuebingen.mpg.de Git - adu.git/blobdiff - error.h
Introduce --global-summary-format.
[adu.git] / error.h
diff --git a/error.h b/error.h
index d97ce507451785591bf6a1052325fcd84959d08a..9b0de5ac12a946412a28735ec61dd88a3d9e7142 100644 (file)
--- a/error.h
+++ b/error.h
        _ERROR(EMPTY, "file empty") \
        _ERROR(MMAP, "mmap error") \
        _ERROR(OSL, "osl error") \
+       _ERROR(SIGNAL_SIG_ERR, "signal() returned SIG_ERR") \
+       _ERROR(OUTPUT, "error writing output file") \
+       _ERROR(MALFORMED_FORMAT, "malformed format string") \
+       _ERROR(BAD_ALIGN_SPEC, "bad alignment specifier") \
+       _ERROR(TRAILING_GARBAGE, "trailing garbage after specifier") \
+       _ERROR(UNIT, "no unit allowed here") \
+       _ERROR(BAD_UNIT, "invalid unit specifier") \
+       _ERROR(BAD_ATOM, "invalid atom") \
 
 
 /**
@@ -54,7 +62,6 @@ static inline const char *adu_strerror(int num)
 {
        assert(num > 0);
        if (num == E_OSL) {
-               fprintf(stderr, "osl error %d\n", osl_errno & 0xff);
                assert(osl_errno > 0);
                return osl_strerror((osl_errno));
        }