btrfs-progs: kerncompat: print trace from ASSERT, if enabled

Commit bc2d4ccc46 "btrfs-progs:
kerncompat: disconnect assert and warning messages" forgot to add the
print_trace call to assert_trace.

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2017-01-31 20:34:27 +01:00
parent d7e3f1d0b7
commit df32b5fa22

View File

@ -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);
}