diff options
author | Mitch Harder <mitch.harder@sabayonlinux.org> | 2014-02-07 09:21:00 -0600 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-03-21 06:23:11 -0700 |
commit | e7839bced72b27bddefe3dbc8ffbcd640edae509 (patch) | |
tree | 4bb76ff86bea0852e5f5ceb17850fc4140c856f1 /kerncompat.h | |
parent | 206efb60cbe3049e0d44c6da3c1909aeee18f813 (diff) |
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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kerncompat.h b/kerncompat.h index 1fc2b34b..f370cd8d 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)) |