projects
/
platform
/
upstream
/
btrfs-progs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb6e3d6
)
btrfs-progs: kerncompat: disconnect assert and warning messages
author
David Sterba
<dsterba@suse.com>
Tue, 24 Jan 2017 15:02:44 +0000
(16:02 +0100)
committer
David Sterba
<dsterba@suse.com>
Wed, 25 Jan 2017 08:48:23 +0000
(09:48 +0100)
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>
kerncompat.h
patch
|
blob
|
history
diff --git
a/kerncompat.h
b/kerncompat.h
index
3362d25
..
5a543c2
100644
(file)
--- 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);
}