From e7839bced72b27bddefe3dbc8ffbcd640edae509 Mon Sep 17 00:00:00 2001 From: Mitch Harder Date: Fri, 7 Feb 2014 09:21:00 -0600 Subject: [PATCH] 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 Signed-off-by: David Sterba Signed-off-by: Chris Mason --- kerncompat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.7.4