aboutsummaryrefslogtreecommitdiffstats
path: root/kerncompat.h
diff options
context:
space:
mode:
authorMitch Harder <mitch.harder@sabayonlinux.org>2014-02-07 09:21:00 -0600
committerChris Mason <clm@fb.com>2014-03-21 06:23:11 -0700
commite7839bced72b27bddefe3dbc8ffbcd640edae509 (patch)
tree4bb76ff86bea0852e5f5ceb17850fc4140c856f1 /kerncompat.h
parent206efb60cbe3049e0d44c6da3c1909aeee18f813 (diff)
downloadbtrfs-progs-e7839bced72b27bddefe3dbc8ffbcd640edae509.tar.gz
btrfs-progs-e7839bced72b27bddefe3dbc8ffbcd640edae509.tar.xz
btrfs-progs-e7839bced72b27bddefe3dbc8ffbcd640edae509.zip
btrfs-progs: Change BUG() to use assert.
Change the definition of BUG() to use assert instead of abort to provide information about the location of the issue. Signed-off-by: Mitch Harder <mitch.harder@sabayonlinux.org> Signed-off-by: David Sterba <dsterba@suse.cz> Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'kerncompat.h')
-rw-r--r--kerncompat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/kerncompat.h b/kerncompat.h
index 1fc2b34..f370cd8 100644
--- a/kerncompat.h
+++ b/kerncompat.h
@@ -50,7 +50,7 @@
#define ULONG_MAX (~0UL)
#endif
-#define BUG() abort()
+#define BUG() assert(0)
#ifdef __CHECKER__
#define __force __attribute__((force))
#define __bitwise__ __attribute__((bitwise))