X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=error.h;h=9e910e2b2236bb9dae79b1d1df36ea0cb5a27b3a;hb=4f52e2f2f0387e5b8ee20cc2d93bea61aa144f2d;hp=b9cbfec373e060059d8c65ed7be5b5751527853c;hpb=c418d2188c9c2c542270023d6fc3bc6cf34f8d29;p=dss.git diff --git a/error.h b/error.h index b9cbfec..9e910e2 100644 --- a/error.h +++ b/error.h @@ -1,3 +1,8 @@ +/* + * Copyright (C) 2006-2010 Andre Noll + * + * Licensed under the GPL v2. For licencing details see COPYING. + */ extern char *dss_errlist[]; extern char *dss_error_txt; @@ -46,15 +51,9 @@ static inline char *dss_strerror(int num) return dss_errlist[num]; } -static inline void log_err_msg(int loglevel, int num) -{ - dss_log(loglevel, "%s (%s)\n", dss_error_txt, dss_strerror(num)); -} - #define DSS_ERRORS \ DSS_ERROR(SUCCESS, "success") \ DSS_ERROR(SYNTAX, "syntax error") \ - DSS_ERROR(INVALID_COMMAND, "invalid command") \ DSS_ERROR(ATOI_OVERFLOW, "value too large") \ DSS_ERROR(STRTOLL, "unknown strtoll error") \ DSS_ERROR(ATOI_NO_DIGITS, "no digits found in string") \ @@ -66,7 +65,10 @@ static inline void log_err_msg(int loglevel, int num) DSS_ERROR(DUP_PIPE, "exec error: can not create pipe") \ DSS_ERROR(INVOLUNTARY_EXIT, "unexpected termination cause") \ DSS_ERROR(BAD_EXIT_CODE, "unexpected exit code") \ - DSS_ERROR(SIGNAL_SIG_ERR, "signal() returned SIG_ERR") + DSS_ERROR(SIGNAL_SIG_ERR, "signal() returned SIG_ERR") \ + DSS_ERROR(SIGNAL, "caught terminating signal") \ + DSS_ERROR(BUG, "values of beta might cause dom!") \ + /** * This is temporarily defined to expand to its first argument (prefixed by