r11334: Print error status in debug.
authorAndrew Bartlett <abartlet@samba.org>
Thu, 27 Oct 2005 14:33:12 +0000 (14:33 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:45:21 +0000 (13:45 -0500)
Andrew Bartlett
(This used to be commit 3b5ef4208d8e9492fbed1b68251bc62063909854)

source4/libcli/dgram/dgramsocket.c

index decbc0225cfd90002193138fa9c9988047557a96..6c6a45f48e49a5b8c811daf97d28abe5d615f97d 100644 (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;