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:
parent
26619538da
commit
dabfc65124
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue