summaryrefslogtreecommitdiff
path: root/source3/smbd/notify.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-06-17 10:46:20 +0200
committerVolker Lendecke <vl@samba.org>2008-06-17 10:48:40 +0200
commitd314f7eab5d6fd5c14849abc553c43642b26cf54 (patch)
tree867d4f311c60cd360d731485f90db09596e07438 /source3/smbd/notify.c
parent99e73df8e81492c3545e93c4fec1cd3c5320f0b4 (diff)
downloadsamba-d314f7eab5d6fd5c14849abc553c43642b26cf54.tar.gz
samba-d314f7eab5d6fd5c14849abc553c43642b26cf54.tar.bz2
samba-d314f7eab5d6fd5c14849abc553c43642b26cf54.zip
Add some debug to notify
(This used to be commit 4394235378f85ccb911d662d95f1545a14240bdf)
Diffstat (limited to 'source3/smbd/notify.c')
-rw-r--r--source3/smbd/notify.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/smbd/notify.c b/source3/smbd/notify.c
index eb3384d9a4..139dfe7d5b 100644
--- a/source3/smbd/notify.c
+++ b/source3/smbd/notify.c
@@ -114,6 +114,9 @@ static bool notify_marshall_changes(int num_changes,
if (prs_offset(ps) > max_offset) {
/* Too much data for client. */
+ DEBUG(10, ("Client only wanted %d bytes, trying to "
+ "marshall %d bytes\n", (int)max_offset,
+ (int)prs_offset(ps)));
return False;
}
}
@@ -256,6 +259,9 @@ NTSTATUS change_notify_add_request(const struct smb_request *req,
struct notify_change_request *request = NULL;
struct notify_mid_map *map = NULL;
+ DEBUG(10, ("change_notify_add_request: Adding request for %s: "
+ "max_param = %d\n", fsp->fsp_name, (int)max_param));
+
if (!(request = SMB_MALLOC_P(struct notify_change_request))
|| !(map = SMB_MALLOC_P(struct notify_mid_map))) {
SAFE_FREE(request);