summaryrefslogtreecommitdiff
path: root/src/lib/err/torerr.c
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2019-08-30 21:17:07 +1000
committerteor <teor@torproject.org>2019-08-30 21:51:07 +1000
commit65a1d86491d56c77048d01e0b4fc6b933a13795c (patch)
tree1f810ae50081db7e6bbf0aeffeb84a8c6e837714 /src/lib/err/torerr.c
parent743bc0028be46e92a46b3b5e38f1e50ee69ff284 (diff)
downloadtor-65a1d86491d56c77048d01e0b4fc6b933a13795c.tar.gz
tor-65a1d86491d56c77048d01e0b4fc6b933a13795c.zip
torerr: Log the Tor backtrace version when a raw assertion fails
Part of 31571.
Diffstat (limited to 'src/lib/err/torerr.c')
-rw-r--r--src/lib/err/torerr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/err/torerr.c b/src/lib/err/torerr.c
index 54acf722aa..88b19b7327 100644
--- a/src/lib/err/torerr.c
+++ b/src/lib/err/torerr.c
@@ -144,7 +144,8 @@ tor_raw_assertion_failed_msg_(const char *file, int line, const char *expr,
{
char linebuf[16];
format_dec_number_sigsafe(line, linebuf, sizeof(linebuf));
- tor_log_err_sigsafe("INTERNAL ERROR: Raw assertion failed at ",
+ tor_log_err_sigsafe("INTERNAL ERROR: Raw assertion failed in ",
+ get_tor_backtrace_version(), " at ",
file, ":", linebuf, ": ", expr, NULL);
if (msg) {
tor_log_err_sigsafe_write(msg);