s3: Fix some DEBUG messages
[ira/wip.git] / source3 / rpc_server / srv_lsa_hnd.c
index 8b4b4a9252f4c01db8e1a4521106f64a58f17e19..4348fb8d4a7b115b15af60ec40a919120c90b887 100644 (file)
@@ -81,11 +81,10 @@ bool init_pipe_handle_list(pipes_struct *p, const struct ndr_syntax_id *syntax)
        for (plist = get_first_internal_pipe();
             plist;
             plist = get_next_internal_pipe(plist)) {
-               if (ndr_syntax_id_equal(syntax,
-                                       &plist->interface->syntax_id)) {
+               if (ndr_syntax_id_equal(syntax, &plist->syntax)) {
                        break;
                }
-               if (is_samr_lsa_pipe(&plist->interface->syntax_id)
+               if (is_samr_lsa_pipe(&plist->syntax)
                    && is_samr_lsa_pipe(syntax)) {
                        /*
                         * samr and lsa share a handle space (same process
@@ -110,7 +109,7 @@ bool init_pipe_handle_list(pipes_struct *p, const struct ndr_syntax_id *syntax)
                }
                ZERO_STRUCTP(hl);
 
-               DEBUG(10,("init_pipe_handles: created handle list for "
+               DEBUG(10,("init_pipe_handle_list: created handle list for "
                          "pipe %s\n",
                          get_pipe_name_from_syntax(talloc_tos(), syntax)));
        }
@@ -127,8 +126,8 @@ bool init_pipe_handle_list(pipes_struct *p, const struct ndr_syntax_id *syntax)
 
        p->pipe_handles = hl;
 
-       DEBUG(10,("init_pipe_handles: pipe_handles ref count = %lu for pipe %s\n",
-                 (unsigned long)p->pipe_handles->pipe_ref_count,
+       DEBUG(10,("init_pipe_handle_list: pipe_handles ref count = %lu for "
+                 "pipe %s\n", (unsigned long)p->pipe_handles->pipe_ref_count,
                  get_pipe_name_from_syntax(talloc_tos(), syntax)));
 
        return True;
@@ -287,7 +286,8 @@ void close_policy_by_pipe(pipes_struct *p)
 
                SAFE_FREE(p->pipe_handles);
                DEBUG(10,("close_policy_by_pipe: deleted handle list for "
-                         "pipe %s\n", get_pipe_name_tos(p)));
+                         "pipe %s\n",
+                         get_pipe_name_from_syntax(talloc_tos(), &p->syntax)));
        }
 }
 
@@ -329,7 +329,7 @@ void *_policy_handle_create(struct pipes_struct *p, struct policy_handle *hnd,
        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_tos(p)));
+                         get_pipe_name_from_syntax(talloc_tos(), &p->syntax)));
                *pstatus = NT_STATUS_INSUFFICIENT_RESOURCES;
                return NULL;
        }