From: Samuel Cabrero Date: Tue, 4 Jun 2019 13:23:22 +0000 (+0200) Subject: s3:rpc_server: Switch to new debug macros for dcesrv_create_ncacn_np_socket X-Git-Tag: talloc-2.3.0~56 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3fdd4dc03adad694f01cf1fb3fe9e3a7cd666dac;p=thirdparty%2Fsamba.git s3:rpc_server: Switch to new debug macros for dcesrv_create_ncacn_np_socket Additionally messages are improved. Signed-off-by: Samuel Cabrero Reviewed-by: Stefan Metzmacher --- diff --git a/source3/rpc_server/rpc_server.c b/source3/rpc_server/rpc_server.c index c62ed6e2b03..ee607db376f 100644 --- a/source3/rpc_server/rpc_server.c +++ b/source3/rpc_server/rpc_server.c @@ -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;