From 9cca50165053084a151d7e69a7e82db98d46ed24 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Fri, 25 May 2018 16:11:37 +0200 Subject: [PATCH] lib: Fix new BUG_ON() implementation A thinko reversed the meaning of the BUG_ON() condition. This fixes the inverted implementation in commit ff09456cf5adaead2d3993a7e1476e56a23ff7bb. --- libfprint/fp_internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libfprint/fp_internal.h b/libfprint/fp_internal.h index 6d8849b8..446c7d1d 100644 --- a/libfprint/fp_internal.h +++ b/libfprint/fp_internal.h @@ -47,7 +47,7 @@ #define fp_warn g_warning #define fp_err g_error -#define BUG_ON(condition) g_assert(condition) +#define BUG_ON(condition) g_assert(!condition) #define BUG() g_assert_not_reached() enum fp_dev_state {