s3-rpc_server: Fixed debug messages for rpc_handles.
authorAndreas Schneider <asn@samba.org>
Tue, 31 May 2011 11:32:22 +0000 (13:32 +0200)
committerAndreas Schneider <asn@samba.org>
Wed, 1 Jun 2011 10:02:15 +0000 (12:02 +0200)
source3/rpc_server/rpc_handles.c

index 1d78af8170d6a669dda08336866a2c689a24f14b..0b302510e07f3b5065c12b781d65b34c56a96c93 100644 (file)
@@ -319,9 +319,9 @@ void close_policy_by_pipe(struct pipes_struct *p)
                 */
                TALLOC_FREE(p->pipe_handles);
 
-               DEBUG(10,("close_policy_by_pipe: deleted handle list for "
-                         "pipe %s\n",
-                         get_pipe_name_from_syntax(talloc_tos(), &p->syntax)));
+               DEBUG(10,("Deleted handle list for RPC connection %s\n",
+                         get_pipe_name_from_syntax(talloc_tos(),
+                                                   &p->contexts->syntax)));
        }
 }
 
@@ -362,9 +362,10 @@ void *_policy_handle_create(struct pipes_struct *p, struct policy_handle *hnd,
        void *data;
 
        if (p->pipe_handles->count > MAX_OPEN_POLS) {
-               DEBUG(0, ("policy_handle_create: ERROR: too many handles (%d) "
-                         "on pipe %s.\n", (int)p->pipe_handles->count,
-                         get_pipe_name_from_syntax(talloc_tos(), &p->syntax)));
+               DEBUG(0, ("ERROR: Too many handles (%d) for RPC connection %s\n",
+                         get_pipe_name_from_syntax(talloc_tos(),
+                                                   &p->contexts->syntax),
+                         (int) p->pipe_handles->count));
                *pstatus = NT_STATUS_INSUFFICIENT_RESOURCES;
                return NULL;
        }