diff options
author | David Sterba <dsterba@suse.com> | 2016-10-04 19:02:37 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-10-05 12:39:01 +0200 |
commit | dabfc65124016e21b7740d3751c4012038f57ead (patch) | |
tree | bd13197f8f244536177ea8cd43edcafc78be8f36 /kerncompat.h | |
parent | 26619538da1734250f42cf8eff13fe2c3a291dd7 (diff) |
btrfs-progs: kerncompat: call abort at the end of assert_trace
The assert* helpers should not exit normally, mimick the behaviour of
the std library assert.
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'kerncompat.h')
-rw-r--r-- | kerncompat.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kerncompat.h b/kerncompat.h index 26d3cb7e..0cd85dc6 100644 --- a/kerncompat.h +++ b/kerncompat.h @@ -91,6 +91,7 @@ static inline void assert_trace(const char *assertion, const char *filename, fprintf(stderr, "%s:%d: %s: Assertion failed, value %d.\n", filename, line, func, val); print_trace(); + abort(); exit(1); } |