aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/md/Kconfig8
-rw-r--r--drivers/md/dm.h5
2 files changed, 13 insertions, 0 deletions
diff --git a/drivers/md/Kconfig b/drivers/md/Kconfig
index 6dd31a291d84..949c71fbfbb5 100644
--- a/drivers/md/Kconfig
+++ b/drivers/md/Kconfig
@@ -201,6 +201,14 @@ config BLK_DEV_DM
201 201
202 If unsure, say N. 202 If unsure, say N.
203 203
204config DM_DEBUG
205 boolean "Device mapper debugging support"
206 depends on BLK_DEV_DM && EXPERIMENTAL
207 ---help---
208 Enable this for messages that may help debug device-mapper problems.
209
210 If unsure, say N.
211
204config DM_CRYPT 212config DM_CRYPT
205 tristate "Crypt target support" 213 tristate "Crypt target support"
206 depends on BLK_DEV_DM && EXPERIMENTAL 214 depends on BLK_DEV_DM && EXPERIMENTAL
diff --git a/drivers/md/dm.h b/drivers/md/dm.h
index 3c03c0ecab7e..fe701c4834fe 100644
--- a/drivers/md/dm.h
+++ b/drivers/md/dm.h
@@ -21,6 +21,11 @@
21#define DMERR(f, arg...) printk(KERN_ERR DM_NAME ": " DM_MSG_PREFIX ": " f "\n", ## arg) 21#define DMERR(f, arg...) printk(KERN_ERR DM_NAME ": " DM_MSG_PREFIX ": " f "\n", ## arg)
22#define DMWARN(f, arg...) printk(KERN_WARNING DM_NAME ": " DM_MSG_PREFIX ": " f "\n", ## arg) 22#define DMWARN(f, arg...) printk(KERN_WARNING DM_NAME ": " DM_MSG_PREFIX ": " f "\n", ## arg)
23#define DMINFO(f, arg...) printk(KERN_INFO DM_NAME ": " DM_MSG_PREFIX ": " f "\n", ## arg) 23#define DMINFO(f, arg...) printk(KERN_INFO DM_NAME ": " DM_MSG_PREFIX ": " f "\n", ## arg)
24#ifdef CONFIG_DM_DEBUG
25# define DMDEBUG(f, arg...) printk(KERN_DEBUG DM_NAME ": " DM_MSG_PREFIX " DEBUG: " f "\n", ## arg)
26#else
27# define DMDEBUG(f, arg...) do {} while (0)
28#endif
24 29
25#define DMEMIT(x...) sz += ((sz >= maxlen) ? \ 30#define DMEMIT(x...) sz += ((sz >= maxlen) ? \
26 0 : scnprintf(result + sz, maxlen - sz, x)) 31 0 : scnprintf(result + sz, maxlen - sz, x))