summaryrefslogtreecommitdiff
path: root/src/common/util.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-12-22 02:46:28 +0000
committerNick Mathewson <nickm@torproject.org>2004-12-22 02:46:28 +0000
commitc79c4200f43680da35849c03fe7fd7705a400d01 (patch)
treed230ac430bfc7f4ecc0bd25c6d36e8e1bc62acf5 /src/common/util.h
parent32978afa5481f66c9ff4fb7ededbdecf6800c16c (diff)
downloadtor-c79c4200f43680da35849c03fe7fd7705a400d01.tar.gz
tor-c79c4200f43680da35849c03fe7fd7705a400d01.zip
Fix a bug in last patch; and keep my name out of the assert() call too.
svn:r3200
Diffstat (limited to 'src/common/util.h')
-rw-r--r--src/common/util.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/util.h b/src/common/util.h
index f1b1bff613..a37018bf3d 100644
--- a/src/common/util.h
+++ b/src/common/util.h
@@ -40,7 +40,8 @@
if (!(expr)) { \
log(LOG_ERR, "%s:%d: %s: Assertion %s failed; aborting.", \
_SHORT_FILE_, __LINE__, __FUNCTION__, #expr); \
- assert(expr); /* write to console too. */ \
+ fprintf(stderr,"%s:%d %s: Assertion %s failed; aborting.\n", \
+ _SHORT_FILE_, __LINE__, __FUNCTION__, #expr); \
abort(); /* unreached */ \
} } while (0)
#endif