aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ubifs/debug.h
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-03-09 06:36:23 -0500
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-03-11 03:52:07 -0500
commitcce3f612fedcbeee61977497b99bbf68a4082b6b (patch)
treeceef1d444004e81ecae2b295468abded19ea1114 /fs/ubifs/debug.h
parent6342aaebda9b94e3cd101ba13eee690ac6577124 (diff)
UBIFS: simplify UBIFS Kconfig menu
Remove debug message level and debug checks Kconfig options as they proved to be useless anyway. We have sysfs interface which we can use for fine-grained debugging messages and checks selection, see Documentation/filesystems/ubifs.txt for mode details. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'fs/ubifs/debug.h')
-rw-r--r--fs/ubifs/debug.h22
1 files changed, 0 insertions, 22 deletions
diff --git a/fs/ubifs/debug.h b/fs/ubifs/debug.h
index 69ebe4729151..10190c189817 100644
--- a/fs/ubifs/debug.h
+++ b/fs/ubifs/debug.h
@@ -205,12 +205,6 @@ enum {
205 UBIFS_MSG_RCVRY = 0x1000, 205 UBIFS_MSG_RCVRY = 0x1000,
206}; 206};
207 207
208/* Debugging message type flags for each default debug message level */
209#define UBIFS_MSG_LVL_0 0
210#define UBIFS_MSG_LVL_1 0x1
211#define UBIFS_MSG_LVL_2 0x7f
212#define UBIFS_MSG_LVL_3 0xffff
213
214/* 208/*
215 * Debugging check flags (must match chk_names in debug.c). 209 * Debugging check flags (must match chk_names in debug.c).
216 * 210 *
@@ -243,22 +237,6 @@ enum {
243 UBIFS_TST_RCVRY = 0x4, 237 UBIFS_TST_RCVRY = 0x4,
244}; 238};
245 239
246#if CONFIG_UBIFS_FS_DEBUG_MSG_LVL == 1
247#define UBIFS_MSG_FLAGS_DEFAULT UBIFS_MSG_LVL_1
248#elif CONFIG_UBIFS_FS_DEBUG_MSG_LVL == 2
249#define UBIFS_MSG_FLAGS_DEFAULT UBIFS_MSG_LVL_2
250#elif CONFIG_UBIFS_FS_DEBUG_MSG_LVL == 3
251#define UBIFS_MSG_FLAGS_DEFAULT UBIFS_MSG_LVL_3
252#else
253#define UBIFS_MSG_FLAGS_DEFAULT UBIFS_MSG_LVL_0
254#endif
255
256#ifdef CONFIG_UBIFS_FS_DEBUG_CHKS
257#define UBIFS_CHK_FLAGS_DEFAULT 0xffffffff
258#else
259#define UBIFS_CHK_FLAGS_DEFAULT 0
260#endif
261
262extern spinlock_t dbg_lock; 240extern spinlock_t dbg_lock;
263 241
264extern unsigned int ubifs_msg_flags; 242extern unsigned int ubifs_msg_flags;