diff options
author | David Sterba <dsterba@suse.com> | 2017-01-24 16:02:44 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-01-25 09:48:23 +0100 |
commit | bc2d4ccc46e2807964c74ce805fb6405ca2bc842 (patch) | |
tree | 8201c7b0cc8c4c0914f70c0a444ff60952226e5c /kerncompat.h | |
parent | eb6e3d6518c314d32e5263f823284ad05e1c46de (diff) |
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>
Diffstat (limited to 'kerncompat.h')
-rw-r--r-- | kerncompat.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kerncompat.h b/kerncompat.h index 3362d251..5a543c22 100644 --- a/kerncompat.h +++ b/kerncompat.h @@ -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); } |