diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2020-05-13 23:59:00 +0200 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2020-05-13 23:59:00 +0200 |
commit | d88dd0a841c8ee5e92ccc47551f3ad2db1fecf9e (patch) | |
tree | efc25f1161f9650b32e552bee312ccf344e56e70 /sysdep/unix/wg_user.c | |
parent | 0564a10c13a584aef82a30d5eee7732ab7832211 (diff) |
WIP debug socket
Diffstat (limited to 'sysdep/unix/wg_user.c')
-rw-r--r-- | sysdep/unix/wg_user.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdep/unix/wg_user.c b/sysdep/unix/wg_user.c index 098c32e2..a6c51787 100644 --- a/sysdep/unix/wg_user.c +++ b/sysdep/unix/wg_user.c @@ -241,7 +241,7 @@ wg_user_set_device(struct pool *pool, sock->tx_hook = user_tx_hook; sock->err_hook = user_err_hook; int res = sk_connect_unix(sock, path, pathlen); - log(L_TRACE "WG: socket %s %d %d %d %s %d %s %d", strerror(errno), res, errno, sock->fd, ifname, path[0], path + 1, pathlen); + log(L_TRACE "WG: socket %s %d %d %d %s %d %s %d", res<0?strerror(errno):NULL, res, res<0?errno:0, sock->fd, ifname, path[0], path + 1, pathlen); DBG(L_TRACE "WG: socket %d %d %s", res, sock->fd, path); if (res < 0) { |