Skip to contentSkip to conversation

Add config option to build fanotify with debug messages

PATCH New [email protected] 1 participant 1 message Aug 22, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add config option to build fanotify with debug messages

From: Ariel Zelivansky <[email protected]>

---
 fs/notify/fanotify/Kconfig  | 9 +++++++++
 fs/notify/fanotify/Makefile | 1 +
 2 files changed, 10 insertions(+)
fs/notify/fanotify/Kconfig +9 -0
index e5f911b..80b670f 100644
@@ -24,3 +24,12 @@ config FANOTIFY_ACCESS_PERMISSIONS
 	   hierarchical storage managent systems.
 
 	   If unsure, say N.
+
+config FANOTIFY_DEBUG
+	bool "fanotify debug messages"
+	depends on FANOTIFY
+	default n
+	---help---
+	    Say Y here to enable kernel debug messages (pr_debug) for fanotify.
+
+	    If unsure, say N.
fs/notify/fanotify/Makefile +1 -0
index 0999213..5043e75 100644
@@ -1 +1,2 @@
 obj-$(CONFIG_FANOTIFY)		+= fanotify.o fanotify_user.o
+ccflags-$(CONFIG_FANOTIFY_DEBUG)	+= -DDEBUG
Signature · 1 line
2.7.4