1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

r11334: Print error status in debug.

Andrew Bartlett
(This used to be commit 3b5ef4208d)
This commit is contained in:
Andrew Bartlett 2005-10-27 14:33:12 +00:00 committed by Gerald (Jerry) Carter
parent 15b9e70ebc
commit 22d867fb1d

View File

@ -117,8 +117,9 @@ static void dgm_socket_send(struct nbt_dgram_socket *dgmsock)
status = socket_sendto(dgmsock->sock, &req->encoded, &len, 0,
req->dest.addr, req->dest.port);
if (NT_STATUS_IS_ERR(status)) {
DEBUG(3,("Failed to send datagram of length %u to %s:%d\n",
(unsigned)req->encoded.length, req->dest.addr, req->dest.port));
DEBUG(3,("Failed to send datagram of length %u to %s:%d: %s\n",
(unsigned)req->encoded.length, req->dest.addr, req->dest.port,
nt_errstr(status)));
DLIST_REMOVE(dgmsock->send_queue, req);
talloc_free(req);
continue;