Btrfs-progs: make BUG*() be more verbose
authorJosef Bacik <jbacik@fb.com>
Thu, 25 Sep 2014 20:07:10 +0000 (16:07 -0400)
committerDavid Sterba <dsterba@suse.cz>
Wed, 1 Oct 2014 14:34:29 +0000 (16:34 +0200)
commit3ae0209d94776faaa139fcebfafa22fd7840b9f4
treeaff0995e2e6bb3614f1a40e4bf1648ede9c341b0
parentafc850dd13e672db63f6ba1faab9d4da6182f5b8
Btrfs-progs: make BUG*() be more verbose

Currently these macros just tie to assert(), which gives us line number and such
but no backtrace so no actual context.  This patch adds support for spitting out
a backtrace so we can see how we got to the given assert.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fb.com>
[backtrace_symbols_fd]
Signed-off-by: Naohiro Aota <naota@elisp.net>
[minor fixups]
Signed-off-by: David Sterba <dsterba@suse.cz>
Makefile
kerncompat.h