summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2014-10-01 12:48:13 +0200
committerAndreas Schneider <asn@samba.org>2014-10-01 14:06:30 +0200
commit362136b89adedbf112beb354e31b0e9b763db37f (patch)
treed3cfaedece5a5fe67b1240d74f03e7361fd2531b
parent045689644b87a3f6a3f4c2baeb70d22d3f6c441c (diff)
downloadsocket_wrapper-362136b89adedbf112beb354e31b0e9b763db37f.tar.gz
socket_wrapper-362136b89adedbf112beb354e31b0e9b763db37f.tar.xz
socket_wrapper-362136b89adedbf112beb354e31b0e9b763db37f.zip
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--src/socket_wrapper.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/socket_wrapper.c b/src/socket_wrapper.c
index 8a7b572..6a495b9 100644
--- a/src/socket_wrapper.c
+++ b/src/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;
}