aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi/debug.c
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-03-11 07:33:23 -0500
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-03-16 07:50:16 -0400
commitb342efd4a49cef9cf1a260c1814aad97722f38f8 (patch)
treec2fecee23143d6939a719c9e6c5728c6f8798665 /drivers/mtd/ubi/debug.c
parent6f9fdf62db64b1e52e5b7a9f785554e8b877b65c (diff)
UBI: make debugging messages dynamic
This patch adds a possibility to dynamically select UBI debugging messages, instead of selecting them compile-time from the configuration menu. This is much more flexible, and consistent with UBIFS, and this also simplifies UBI Kconfig menu and the code. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/mtd/ubi/debug.c')
-rw-r--r--drivers/mtd/ubi/debug.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/mtd/ubi/debug.c b/drivers/mtd/ubi/debug.c
index 4876977e52cb..8ae0bc7401ca 100644
--- a/drivers/mtd/ubi/debug.c
+++ b/drivers/mtd/ubi/debug.c
@@ -27,6 +27,14 @@
27#ifdef CONFIG_MTD_UBI_DEBUG 27#ifdef CONFIG_MTD_UBI_DEBUG
28 28
29#include "ubi.h" 29#include "ubi.h"
30#include <linux/module.h>
31#include <linux/moduleparam.h>
32
33unsigned int ubi_msg_flags;
34
35module_param_named(debug_msgs, ubi_msg_flags, uint, S_IRUGO | S_IWUSR);
36
37MODULE_PARM_DESC(debug_msgs, "Debug message type flags");
30 38
31/** 39/**
32 * ubi_dbg_dump_ec_hdr - dump an erase counter header. 40 * ubi_dbg_dump_ec_hdr - dump an erase counter header.