Author: abartlet
Date: 2005-10-27 14:33:12 +0000 (Thu, 27 Oct 2005)
New Revision: 11334

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=11334

Log:
Print error status in debug.

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/libcli/dgram/dgramsocket.c


Changeset:
Modified: branches/SAMBA_4_0/source/libcli/dgram/dgramsocket.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/dgram/dgramsocket.c        2005-10-27 
13:54:30 UTC (rev 11333)
+++ branches/SAMBA_4_0/source/libcli/dgram/dgramsocket.c        2005-10-27 
14:33:12 UTC (rev 11334)
@@ -117,8 +117,9 @@
                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;

Reply via email to