[PATCH 1/3 v2] target: enable debug output

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The code uses pr_debug macro which requires the DEBUG define in order to
do things. I can't find any evidence that it is defined somewhere so
here is a global switch for it.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx>
---
v1..v2: s/debuging/debugging/

 drivers/target/Kconfig  |    7 +++++++
 drivers/target/Makefile |    2 +-
 2 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/drivers/target/Kconfig b/drivers/target/Kconfig
index b28794b..ad9abde 100644
--- a/drivers/target/Kconfig
+++ b/drivers/target/Kconfig
@@ -11,6 +11,13 @@ menuconfig TARGET_CORE
 
 if TARGET_CORE
 
+config TARGET_DEBUG
+	bool "Enable debug output"
+	help
+	Enables additional debug output of the target framework. Unless
+	you are developing or debugging the target framework you can say
+	N here.
+
 config TCM_IBLOCK
 	tristate "TCM/IBLOCK Subsystem Plugin for Linux/BLOCK"
 	help
diff --git a/drivers/target/Makefile b/drivers/target/Makefile
index 62e5405..2802538 100644
--- a/drivers/target/Makefile
+++ b/drivers/target/Makefile
@@ -1,4 +1,4 @@
-
+ccflags-$(CONFIG_TARGET_DEBUG)	+= -DDEBUG
 target_core_mod-y		:= target_core_configfs.o \
 				   target_core_device.o \
 				   target_core_fabric_configfs.o \
-- 
1.7.7.1

--
To unsubscribe from this list: send the line "unsubscribe target-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux SCSI]     [Kernel Newbies]     [Linux SCSI Target Infrastructure]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Device Mapper]

  Powered by Linux