summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2005-10-27 14:33:12 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:45:21 -0500
commit22d867fb1d0247a7b74776e65a0dd5eac5dcc0d4 (patch)
tree42de4eaefff3a526b975efc7e19bbfe284c06596 /source4/libcli
parent15b9e70ebcad41b2fff3462150bd81f6b64e0c33 (diff)
downloadsamba-22d867fb1d0247a7b74776e65a0dd5eac5dcc0d4.tar.gz
samba-22d867fb1d0247a7b74776e65a0dd5eac5dcc0d4.tar.bz2
samba-22d867fb1d0247a7b74776e65a0dd5eac5dcc0d4.zip
r11334: Print error status in debug.
Andrew Bartlett (This used to be commit 3b5ef4208d8e9492fbed1b68251bc62063909854)
Diffstat (limited to 'source4/libcli')
-rw-r--r--source4/libcli/dgram/dgramsocket.c5
1 files changed, 3 insertions, 2 deletions
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;