forked from Mirrors/btrfs-progs
btrfs-progs: kerncompat: disconnect assert and warning messages
The assertion and warn/bug have reversed condition checks, using the same helpers drops the exact value, so we'll print the message directly without the helpers. Signed-off-by: David Sterba <dsterba@suse.com>master
parent
eb6e3d6518
commit
bc2d4ccc46
|
@ -301,7 +301,9 @@ static inline void assert_trace(const char *assertion, const char *filename,
|
|||
{
|
||||
if (val)
|
||||
return;
|
||||
warning_trace(assertion, filename, func, line, val);
|
||||
fprintf(stderr,
|
||||
"%s:%d: %s: Assertion `%s` failed, value %ld\n",
|
||||
filename, line, func, assertion, val);
|
||||
abort();
|
||||
exit(1);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue