summaryrefslogtreecommitdiff
path: root/kerncompat.h
diff options
context:
space:
mode:
Diffstat (limited to 'kerncompat.h')
-rw-r--r--kerncompat.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/kerncompat.h b/kerncompat.h
index 1493cad8..958bea43 100644
--- a/kerncompat.h
+++ b/kerncompat.h
@@ -299,6 +299,9 @@ static inline void assert_trace(const char *assertion, const char *filename,
fprintf(stderr,
"%s:%d: %s: Assertion `%s` failed, value %ld\n",
filename, line, func, assertion, val);
+#ifndef BTRFS_DISABLE_BACKTRACE
+ print_trace();
+#endif
abort();
exit(1);
}