diff mbox

btrfs-progs: Change BUG() to use assert.

Message ID 1391786460-19571-1-git-send-email-mitch.harder@sabayonlinux.org (mailing list archive)
State Accepted, archived
Headers show

Commit Message

Mitch Harder Feb. 7, 2014, 3:21 p.m. UTC
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>
---
 kerncompat.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

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))