btrfs-progs: Change BUG() to use assert.
authorMitch Harder <mitch.harder@sabayonlinux.org>
Fri, 7 Feb 2014 15:21:00 +0000 (09:21 -0600)
committerChris Mason <clm@fb.com>
Fri, 21 Mar 2014 13:23:11 +0000 (06:23 -0700)
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>
kerncompat.h

index 1fc2b34..f370cd8 100644 (file)
@@ -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))