diff options
author | Eric Paris <eparis@redhat.com> | 2010-07-28 10:18:37 -0400 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2010-07-28 10:18:50 -0400 |
commit | 5ba08e2eeb06355f66ed62ae97bb87d145973a9a (patch) | |
tree | 4d0b26a125c8805234e0ebb58101bf1c5a75e61e /fs/notify/inotify/inotify_fsnotify.c | |
parent | 80af2588676483ac4e998b5092e9d008dab3ab62 (diff) |
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/inotify/inotify_fsnotify.c')
-rw-r--r-- | fs/notify/inotify/inotify_fsnotify.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/notify/inotify/inotify_fsnotify.c b/fs/notify/inotify/inotify_fsnotify.c index 9d332e7f5a5..906b72761b1 100644 --- a/fs/notify/inotify/inotify_fsnotify.c +++ b/fs/notify/inotify/inotify_fsnotify.c | |||
@@ -98,6 +98,9 @@ static int inotify_handle_event(struct fsnotify_group *group, struct fsnotify_ev | |||
98 | struct fsnotify_event_private_data *fsn_event_priv; | 98 | struct fsnotify_event_private_data *fsn_event_priv; |
99 | int wd, ret; | 99 | int wd, ret; |
100 | 100 | ||
101 | pr_debug("%s: group=%p event=%p to_tell=%p mask=%x\n", __func__, group, | ||
102 | event, event->to_tell, event->mask); | ||
103 | |||
101 | to_tell = event->to_tell; | 104 | to_tell = event->to_tell; |
102 | 105 | ||
103 | fsn_mark = fsnotify_find_inode_mark(group, to_tell); | 106 | fsn_mark = fsnotify_find_inode_mark(group, to_tell); |
@@ -151,6 +154,9 @@ static bool inotify_should_send_event(struct fsnotify_group *group, struct inode | |||
151 | struct fsnotify_mark *fsn_mark; | 154 | struct fsnotify_mark *fsn_mark; |
152 | bool send; | 155 | bool send; |
153 | 156 | ||
157 | pr_debug("%s: group=%p inode=%p mask=%x data=%p data_type=%d\n", | ||
158 | __func__, group, inode, mask, data, data_type); | ||
159 | |||
154 | fsn_mark = fsnotify_find_inode_mark(group, inode); | 160 | fsn_mark = fsnotify_find_inode_mark(group, inode); |
155 | if (!fsn_mark) | 161 | if (!fsn_mark) |
156 | return false; | 162 | return false; |