diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-10-25 18:01:01 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-10-25 18:01:01 +0000 |
commit | 5d85560d9e23147f85847f69a6255edfb432f565 (patch) | |
tree | d45c170eefd08fd50cbe65d58746288a310cd66b /src/common/util.h | |
parent | d7e136240a59f75985b1b752b07564150ea1acb4 (diff) | |
download | tor-5d85560d9e23147f85847f69a6255edfb432f565.tar tor-5d85560d9e23147f85847f69a6255edfb432f565.tar.gz |
Remove last vestiges of old logging interface.
svn:r5317
Diffstat (limited to 'src/common/util.h')
-rw-r--r-- | src/common/util.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/common/util.h b/src/common/util.h index c80bbd666..969d6152e 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -38,16 +38,6 @@ */ #error "Sorry; we don't support building with NDEBUG." #else -#ifdef OLD_LOG_INTERFACE -#define tor_assert(expr) do { \ - if (!(expr)) { \ - log(LOG_ERR, "%s:%d: %s: Assertion %s failed; aborting.", \ - _SHORT_FILE_, __LINE__, __FUNCTION__, #expr); \ - fprintf(stderr,"%s:%d %s: Assertion %s failed; aborting.\n", \ - _SHORT_FILE_, __LINE__, __FUNCTION__, #expr); \ - abort(); /* unreached */ \ - } } while (0) -#else #define tor_assert(expr) do { \ if (!(expr)) { \ log(LOG_ERR, LD_BUG, "%s:%d: %s: Assertion %s failed; aborting.", \ @@ -57,7 +47,6 @@ abort(); /* unreached */ \ } } while (0) #endif -#endif #ifdef USE_DMALLOC #define DMALLOC_PARAMS , const char *file, const int line |