diff options
author | Andreas Schneider <asn@samba.org> | 2014-10-02 07:24:55 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2014-10-02 09:35:11 +0200 |
commit | 539fa2c04f6220e72a63ab492fae298c86b00954 (patch) | |
tree | 7f91342abe3063964279f13df6ffc7948f4eb442 | |
parent | 8efc0952adda9273e90ffbbc0c691c9ff4b9b947 (diff) | |
download | samba-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.c | 5 |
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; } |