aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi/debug.c
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-03-15 04:30:40 -0400
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-03-16 07:50:17 -0400
commit28237e4583604818294dc1ce7881db5f53377b9c (patch)
tree84fc5d22a1f4213824445253cc9702be96069b47 /drivers/mtd/ubi/debug.c
parent92d124f5314913a21f7fa98b22ee457dab171edd (diff)
UBI: make tests modes dynamic
Similarly to the debugging checks and message, make the test modes be dynamically selected via the "debug_tsts" module parameter or via the "/sys/module/ubi/parameters/debug_tsts" sysfs file. This is consistent with UBIFS as well. And now, since all the Kconfig knobs became dynamic, we can remove the Kconfig.debug file completely. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/mtd/ubi/debug.c')
-rw-r--r--drivers/mtd/ubi/debug.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mtd/ubi/debug.c b/drivers/mtd/ubi/debug.c
index 4c7a3f67156b..d4d07e5f138f 100644
--- a/drivers/mtd/ubi/debug.c
+++ b/drivers/mtd/ubi/debug.c
@@ -32,12 +32,15 @@
32 32
33unsigned int ubi_msg_flags; 33unsigned int ubi_msg_flags;
34unsigned int ubi_chk_flags; 34unsigned int ubi_chk_flags;
35unsigned int ubi_tst_flags;
35 36
36module_param_named(debug_msgs, ubi_msg_flags, uint, S_IRUGO | S_IWUSR); 37module_param_named(debug_msgs, ubi_msg_flags, uint, S_IRUGO | S_IWUSR);
37module_param_named(debug_chks, ubi_chk_flags, uint, S_IRUGO | S_IWUSR); 38module_param_named(debug_chks, ubi_chk_flags, uint, S_IRUGO | S_IWUSR);
39module_param_named(debug_tsts, ubi_chk_flags, uint, S_IRUGO | S_IWUSR);
38 40
39MODULE_PARM_DESC(debug_msgs, "Debug message type flags"); 41MODULE_PARM_DESC(debug_msgs, "Debug message type flags");
40MODULE_PARM_DESC(debug_chks, "Debug check flags"); 42MODULE_PARM_DESC(debug_chks, "Debug check flags");
43MODULE_PARM_DESC(debug_tsts, "Debug special test flags");
41 44
42/** 45/**
43 * ubi_dbg_dump_ec_hdr - dump an erase counter header. 46 * ubi_dbg_dump_ec_hdr - dump an erase counter header.