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>
This commit is contained in:
Mitch Harder 2014-02-07 09:21:00 -06:00 committed by Chris Mason
parent 206efb60cb
commit e7839bced7
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@
#define ULONG_MAX (~0UL) #define ULONG_MAX (~0UL)
#endif #endif
#define BUG() abort() #define BUG() assert(0)
#ifdef __CHECKER__ #ifdef __CHECKER__
#define __force __attribute__((force)) #define __force __attribute__((force))
#define __bitwise__ __attribute__((bitwise)) #define __bitwise__ __attribute__((bitwise))