]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:rpc_server: Switch to new debug macros for dcesrv_create_ncacn_np_socket
authorSamuel Cabrero <scabrero@suse.de>
Tue, 4 Jun 2019 13:23:22 +0000 (15:23 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 22 Jul 2019 16:49:12 +0000 (16:49 +0000)
Additionally messages are improved.

Signed-off-by: Samuel Cabrero <scabrero@suse.de>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/rpc_server/rpc_server.c

index c62ed6e2b03fd099342199a444cac78d93d29694..ee607db376f7ae90e214e9227434d6a320556c06 100644 (file)
@@ -109,34 +109,34 @@ NTSTATUS dcesrv_create_ncacn_np_socket(const char *pipe_name, int *out_fd)
         */
        if (!directory_create_or_exist(lp_ncalrpc_dir(), 0755)) {
                status = map_nt_error_from_unix_common(errno);
-               DEBUG(0, ("Failed to create pipe directory %s - %s\n",
-                         lp_ncalrpc_dir(), strerror(errno)));
+               DBG_ERR("Failed to create pipe directory %s - %s\n",
+                       lp_ncalrpc_dir(), strerror(errno));
                goto out;
        }
 
        np_dir = talloc_asprintf(talloc_tos(), "%s/np", lp_ncalrpc_dir());
        if (!np_dir) {
                status = NT_STATUS_NO_MEMORY;
-               DEBUG(0, ("Out of memory\n"));
+               DBG_ERR("Out of memory\n");
                goto out;
        }
 
        if (!directory_create_or_exist_strict(np_dir, geteuid(), 0700)) {
                status = map_nt_error_from_unix_common(errno);
-               DEBUG(0, ("Failed to create pipe directory %s - %s\n",
-                         np_dir, strerror(errno)));
+               DBG_ERR("Failed to create pipe directory %s - %s\n",
+                       np_dir, strerror(errno));
                goto out;
        }
 
        fd = create_pipe_sock(np_dir, pipe_name, 0700);
        if (fd == -1) {
                status = map_nt_error_from_unix_common(errno);
-               DEBUG(0, ("Failed to create pipe socket! [%s/%s]\n",
-                         np_dir, pipe_name));
+               DBG_ERR("Failed to create ncacn_np socket! '%s/%s': %s\n",
+                       np_dir, pipe_name, strerror(errno));
                goto out;
        }
 
-       DEBUG(10, ("Opened pipe socket fd %d for %s\n", fd, pipe_name));
+       DBG_DEBUG("Opened pipe socket fd %d for %s\n", fd, pipe_name);
 
        *out_fd = fd;