From 22d867fb1d0247a7b74776e65a0dd5eac5dcc0d4 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 27 Oct 2005 14:33:12 +0000 Subject: r11334: Print error status in debug. Andrew Bartlett (This used to be commit 3b5ef4208d8e9492fbed1b68251bc62063909854) --- source4/libcli/dgram/dgramsocket.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source4/libcli') diff --git a/source4/libcli/dgram/dgramsocket.c b/source4/libcli/dgram/dgramsocket.c index decbc0225c..6c6a45f48e 100644 --- a/source4/libcli/dgram/dgramsocket.c +++ b/source4/libcli/dgram/dgramsocket.c @@ -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; -- cgit