]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Add some debug to notify
authorVolker Lendecke <vl@samba.org>
Tue, 17 Jun 2008 08:46:20 +0000 (10:46 +0200)
committerVolker Lendecke <vl@samba.org>
Tue, 17 Jun 2008 08:48:40 +0000 (10:48 +0200)
source/smbd/notify.c

index eb3384d9a40dffe9d6690a43516922d9e61c1d31..139dfe7d5b3dbd59393b30ef1d80bcbd5aeec394 100644 (file)
@@ -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);