From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932546AbdHVLgX (ORCPT ); Tue, 22 Aug 2017 07:36:23 -0400 Received: from mail-wr0-f169.google.com ([209.85.128.169]:38729 "EHLO mail-wr0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932427AbdHVLgW (ORCPT ); Tue, 22 Aug 2017 07:36:22 -0400 From: ariel@twistlock.com To: eparis@redhat.com Cc: linux-kernel@vger.kernel.org, Ariel Zelivansky Subject: [PATCH] Add config option to build fanotify with debug messages Date: Tue, 22 Aug 2017 14:36:18 +0300 Message-Id: <1503401778-29291-1-git-send-email-ariel@twistlock.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ariel Zelivansky Signed-off-by: Ariel Zelivansky --- fs/notify/fanotify/Kconfig | 9 +++++++++ fs/notify/fanotify/Makefile | 1 + 2 files changed, 10 insertions(+) diff --git a/fs/notify/fanotify/Kconfig b/fs/notify/fanotify/Kconfig index e5f911b..80b670f 100644 --- a/fs/notify/fanotify/Kconfig +++ b/fs/notify/fanotify/Kconfig @@ -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. diff --git a/fs/notify/fanotify/Makefile b/fs/notify/fanotify/Makefile index 0999213..5043e75 100644 --- a/fs/notify/fanotify/Makefile +++ b/fs/notify/fanotify/Makefile @@ -1 +1,2 @@ obj-$(CONFIG_FANOTIFY) += fanotify.o fanotify_user.o +ccflags-$(CONFIG_FANOTIFY_DEBUG) += -DDEBUG -- 2.7.4