mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +03:00
s3:rpc_server: Fix code formatting and improve debug messages
Signed-off-by: Samuel Cabrero <scabrero@suse.de> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
f527964f72
commit
60b7b79187
@ -749,8 +749,7 @@ static void dcesrv_ncacn_ip_tcp_listener(struct tevent_context *ev,
|
||||
s = accept(state->fd, (struct sockaddr *)(void *) &addr, &in_addrlen);
|
||||
if (s == -1) {
|
||||
if (errno != EINTR) {
|
||||
DEBUG(0,("tcpip_listener accept: %s\n",
|
||||
strerror(errno)));
|
||||
DBG_ERR("Failed to accept: %s\n", strerror(errno));
|
||||
}
|
||||
return;
|
||||
}
|
||||
@ -780,7 +779,7 @@ static void dcesrv_ncacn_ip_tcp_listener(struct tevent_context *ev,
|
||||
return;
|
||||
}
|
||||
|
||||
DEBUG(6, ("tcpip_listener: Accepted socket %d\n", s));
|
||||
DBG_DEBUG("Accepted ncacn_ip_tcp socket %d\n", s);
|
||||
|
||||
dcerpc_ncacn_accept(state->ev_ctx,
|
||||
state->msg_ctx,
|
||||
@ -940,7 +939,7 @@ static void dcesrv_ncalrpc_listener(struct tevent_context *ev,
|
||||
sd = accept(state->fd, addr, &len);
|
||||
if (sd == -1) {
|
||||
if (errno != EINTR) {
|
||||
DEBUG(0, ("ncalrpc accept() failed: %s\n", strerror(errno)));
|
||||
DBG_ERR("Failed to accept: %s\n", strerror(errno));
|
||||
}
|
||||
return;
|
||||
}
|
||||
@ -969,8 +968,8 @@ static void dcesrv_ncalrpc_listener(struct tevent_context *ev,
|
||||
return;
|
||||
}
|
||||
|
||||
DEBUG(10, ("Accepted ncalrpc socket %s (fd: %d)\n",
|
||||
sunaddr.sun_path, sd));
|
||||
DBG_DEBUG("Accepted ncalrpc socket %s (fd: %d)\n",
|
||||
sunaddr.sun_path, sd);
|
||||
|
||||
dcerpc_ncacn_accept(state->ev_ctx,
|
||||
state->msg_ctx,
|
||||
|
Loading…
x
Reference in New Issue
Block a user