summaryrefslogtreecommitdiffstats
path: root/fs/notify/fsnotify.c
diff options
context:
space:
mode:
authorEric Paris <eparis@redhat.com>2010-07-28 16:18:37 +0200
committerEric Paris <eparis@redhat.com>2010-07-28 16:18:50 +0200
commit5ba08e2eeb06355f66ed62ae97bb87d145973a9a (patch)
tree4d0b26a125c8805234e0ebb58101bf1c5a75e61e /fs/notify/fsnotify.c
parentfanotify: groups can specify their f_flags for new fd (diff)
downloadlinux-5ba08e2eeb06355f66ed62ae97bb87d145973a9a.tar.xz
linux-5ba08e2eeb06355f66ed62ae97bb87d145973a9a.zip
fsnotify: add pr_debug throughout
It can be hard to debug fsnotify since there are so few printks. Use pr_debug to allow for dynamic debugging. Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'fs/notify/fsnotify.c')
-rw-r--r--fs/notify/fsnotify.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/notify/fsnotify.c b/fs/notify/fsnotify.c
index 076c10e959d5..72aae4045314 100644
--- a/fs/notify/fsnotify.c
+++ b/fs/notify/fsnotify.c
@@ -174,6 +174,10 @@ static int send_to_group(struct fsnotify_group *group, struct inode *to_tell,
int data_is, u32 cookie, const unsigned char *file_name,
struct fsnotify_event **event)
{
+ pr_debug("%s: group=%p to_tell=%p mnt=%p mask=%x data=%p data_is=%d"
+ " cookie=%d event=%p\n", __func__, group, to_tell, mnt,
+ mask, data, data_is, cookie, *event);
+
if (!group->ops->should_send_event(group, to_tell, mnt, mask,
data, data_is))
return 0;