X-Git-Url: http://git.tuebingen.mpg.de/?p=adu.git;a=blobdiff_plain;f=error.h;h=9b0de5ac12a946412a28735ec61dd88a3d9e7142;hp=d97ce507451785591bf6a1052325fcd84959d08a;hb=a398d5009251fa41859006dae5c99afc6824fab2;hpb=0780ea991eb8d05f7d06eb2833e49925506ae17c diff --git a/error.h b/error.h index d97ce50..9b0de5a 100644 --- a/error.h +++ b/error.h @@ -24,6 +24,14 @@ _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)); }