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
(from parent 1:
d7e3f1d
)
btrfs-progs: kerncompat: print trace from ASSERT, if enabled
author
David Sterba
<dsterba@suse.com>
Tue, 31 Jan 2017 19:34:27 +0000
(20:34 +0100)
committer
David Sterba
<dsterba@suse.com>
Wed, 8 Mar 2017 12:00:46 +0000
(13:00 +0100)
Commit
bc2d4ccc46e2807964c74ce805fb6405ca2bc842
"btrfs-progs:
kerncompat: disconnect assert and warning messages" forgot to add the
print_trace call to assert_trace.
Signed-off-by: David Sterba <dsterba@suse.com>
kerncompat.h
patch
|
blob
|
history
diff --git
a/kerncompat.h
b/kerncompat.h
index
1493cad
..
958bea4
100644
(file)
--- a/
kerncompat.h
+++ b/
kerncompat.h
@@
-299,6
+299,9
@@
static inline void assert_trace(const char *assertion, const char *filename,
fprintf(stderr,
"%s:%d: %s: Assertion `%s` failed, value %ld\n",
filename, line, func, assertion, val);
+#ifndef BTRFS_DISABLE_BACKTRACE
+ print_trace();
+#endif
abort();
exit(1);
}