diff --git a/Kconfig b/Kconfig index 2ab3e99..f3a7ff6 100644 --- a/Kconfig +++ b/Kconfig @@ -97,6 +97,11 @@ config SDFAT_DBG_BUGON depends on SDFAT_FS && SDFAT_DEBUG default n +config SDFAT_DBG_WARNON + bool "enable strict WARN_ON() for debugging" + depends on SDFAT_FS && SDFAT_DEBUG + default n + config SDFAT_STATISTICS bool "enable statistics for bigdata" depends on SDFAT_FS diff --git a/sdfat.h b/sdfat.h index 2f10b96..a4b7ed3 100644 --- a/sdfat.h +++ b/sdfat.h @@ -393,6 +393,7 @@ void sdfat_debug_check_clusters(struct inode *inode); #define sdfat_debug_check_clusters(inode) #define sdfat_debug_bug_on(expr) +#define sdfat_debug_warn_on(expr) #endif /* CONFIG_SDFAT_DEBUG */