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>
This commit is contained in:
David Sterba 2016-10-04 19:02:37 +02:00
parent 26619538da
commit dabfc65124
1 changed files with 1 additions and 0 deletions

View File

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