diff options
author | David Sterba <dsterba@suse.com> | 2017-01-31 20:34:27 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-03-08 13:00:46 +0100 |
commit | df32b5fa2298dab7fb3ee955c3f496570c20d5de (patch) | |
tree | 646864e1fcb5be9db170177e7a4fb7a6e6bcea35 /kerncompat.h | |
parent | d7e3f1d0b7334f4c3e03d23788937905b9e43561 (diff) |
btrfs-progs: kerncompat: print trace from ASSERT, if enabled
Commit bc2d4ccc46e2807964c74ce805fb6405ca2bc842 "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>
Diffstat (limited to 'kerncompat.h')
-rw-r--r-- | kerncompat.h | 3 |
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); } |