aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi/debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/ubi/debug.h')
-rw-r--r--drivers/mtd/ubi/debug.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/drivers/mtd/ubi/debug.h b/drivers/mtd/ubi/debug.h
index bee6fa1e5147..2511b586490a 100644
--- a/drivers/mtd/ubi/debug.h
+++ b/drivers/mtd/ubi/debug.h
@@ -99,14 +99,22 @@ enum {
99/* Initialization and build messages */ 99/* Initialization and build messages */
100#define dbg_bld(fmt, ...) dbg_do_msg(UBI_MSG_BLD, fmt, ##__VA_ARGS__) 100#define dbg_bld(fmt, ...) dbg_do_msg(UBI_MSG_BLD, fmt, ##__VA_ARGS__)
101 101
102#ifdef CONFIG_MTD_UBI_DEBUG_PARANOID 102extern unsigned int ubi_chk_flags;
103
104/*
105 * Debugging check flags.
106 *
107 * UBI_CHK_GEN: general checks
108 * UBI_CHK_IO: check writes and erases
109 */
110enum {
111 UBI_CHK_GEN = 0x1,
112 UBI_CHK_IO = 0x2,
113};
114
103int ubi_dbg_check_all_ff(struct ubi_device *ubi, int pnum, int offset, int len); 115int ubi_dbg_check_all_ff(struct ubi_device *ubi, int pnum, int offset, int len);
104int ubi_dbg_check_write(struct ubi_device *ubi, const void *buf, int pnum, 116int ubi_dbg_check_write(struct ubi_device *ubi, const void *buf, int pnum,
105 int offset, int len); 117 int offset, int len);
106#else
107#define ubi_dbg_check_all_ff(ubi, pnum, offset, len) 0
108#define ubi_dbg_check_write(ubi, buf, pnum, offset, len) 0
109#endif
110 118
111#ifdef CONFIG_MTD_UBI_DEBUG_DISABLE_BGT 119#ifdef CONFIG_MTD_UBI_DEBUG_DISABLE_BGT
112#define DBG_DISABLE_BGT 1 120#define DBG_DISABLE_BGT 1