summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2014-10-02 07:24:55 +0200
committerAndreas Schneider <asn@cryptomilk.org>2014-10-02 09:35:11 +0200
commit539fa2c04f6220e72a63ab492fae298c86b00954 (patch)
tree7f91342abe3063964279f13df6ffc7948f4eb442
parent8efc0952adda9273e90ffbbc0c691c9ff4b9b947 (diff)
downloadsamba-539fa2c04f6220e72a63ab492fae298c86b00954.tar.gz
swrap: Add a trace message for swrap_socket().
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r--lib/socket_wrapper/socket_wrapper.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/socket_wrapper/socket_wrapper.c b/lib/socket_wrapper/socket_wrapper.c
index 8a7b57243fc..6a495b95029 100644
--- a/lib/socket_wrapper/socket_wrapper.c
+++ b/lib/socket_wrapper/socket_wrapper.c
@@ -2430,6 +2430,11 @@ static int swrap_socket(int family, int type, int protocol)
SWRAP_DLIST_ADD(si->fds, fi);
SWRAP_DLIST_ADD(sockets, si);
+ SWRAP_LOG(SWRAP_LOG_TRACE,
+ "Created %s socket for protocol %s",
+ si->family == AF_INET ? "IPv4" : "IPv6",
+ si->type == SOCK_DGRAM ? "UDP" : "TCP");
+
return fd;
}