mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git
synced 2024-11-15 16:24:21 +08:00
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:
parent
d7e3f1d0b7
commit
df32b5fa22
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user