From 19e7b217c1c460d0bf2bb1e722d49174e608f4de Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Mon, 16 Jul 2018 16:08:12 +0200 Subject: [PATCH] lib: Downgrade fp_err() to be non-fatal Similarly to b1ac865abdc017bb824aab452da37e026d3a9a4c, downgrade fp_err() to be non-fatal. A number of drivers would spit out an error when encountering this call, but not crash, carry on and most of the time recover. Make sure we don't assert in those cases. --- libfprint/drivers_api.h | 2 +- libfprint/fp_internal.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libfprint/drivers_api.h b/libfprint/drivers_api.h index 5eb844c..2679c77 100644 --- a/libfprint/drivers_api.h +++ b/libfprint/drivers_api.h @@ -40,7 +40,7 @@ #define fp_dbg g_debug #define fp_info g_debug #define fp_warn g_warning -#define fp_err g_error +#define fp_err g_warning #define BUG_ON(condition) G_STMT_START \ if (condition) { \ diff --git a/libfprint/fp_internal.h b/libfprint/fp_internal.h index 3611f76..e750182 100644 --- a/libfprint/fp_internal.h +++ b/libfprint/fp_internal.h @@ -42,7 +42,7 @@ #define fp_dbg g_debug #define fp_info g_debug #define fp_warn g_warning -#define fp_err g_error +#define fp_err g_warning #define BUG_ON(condition) G_STMT_START \ if (condition) { \