Skip to content
This repository has been archived by the owner on Mar 3, 2024. It is now read-only.

Commit

Permalink
exfat: add missing WARN_ON() declarations for debugging
Browse files Browse the repository at this point in the history
Signed-off-by: Park Ju Hyung <qkrwngud825@gmail.com>
  • Loading branch information
arter97 committed Aug 12, 2019
1 parent 9e9d3b8 commit 6588977
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ config EXFAT_DBG_BUGON
depends on EXFAT_FS && EXFAT_DEBUG
default n

config EXFAT_DBG_WARNON
bool "enable strict WARN_ON() for debugging"
depends on EXFAT_FS && EXFAT_DEBUG
default n

config EXFAT_STATISTICS
bool "enable statistics for bigdata"
depends on EXFAT_FS
Expand Down
1 change: 1 addition & 0 deletions exfat.h
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,7 @@ void exfat_debug_check_clusters(struct inode *inode);

#define exfat_debug_check_clusters(inode)
#define exfat_debug_bug_on(expr)
#define exfat_debug_warn_on(expr)

#endif /* CONFIG_EXFAT_DEBUG */

Expand Down

0 comments on commit 6588977

Please sign in to comment.