diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2020-01-02 10:33:54 +0100 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2020-09-13 18:05:34 +0200 |
commit | 4bbe8d369b7ef3da1e912c9706171c0bd1019a73 (patch) | |
tree | 4092ddd11b614ca97eb7d39565d306f690feefbe | |
parent | 604f7be862c59254edd342fc5ce4eedda35c97b7 (diff) |
Wireguard: Replace log with DBG
-rw-r--r-- | sysdep/unix/wg_user.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sysdep/unix/wg_user.c b/sysdep/unix/wg_user.c index a387e971..c3bef041 100644 --- a/sysdep/unix/wg_user.c +++ b/sysdep/unix/wg_user.c @@ -27,7 +27,7 @@ bool wg_has_userspace(const char *ifname) return (sb.st_mode & S_IFMT) == S_IFSOCK; else { - log(L_TRACE "WG: no socket %s", tmp); + DBG(L_TRACE "WG: no socket %s", tmp); return false; } } @@ -36,14 +36,14 @@ bool wg_has_userspace(const char *ifname) static int user_rx_hook(struct birdsock *sk UNUSED, uint size) { - log(L_TRACE "WG: RX %d", size); + DBG(L_TRACE "WG: RX %d", size); return 1; } static void user_tx_hook(struct birdsock *bs UNUSED) { - log(L_TRACE "WG: TX"); + DBG(L_TRACE "WG: TX"); } /* errno or zero if EOF */ @@ -220,7 +220,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); - log(L_TRACE "WG: socket %d %d %s", res, sock->fd, path); + DBG(L_TRACE "WG: socket %d %d %s", res, sock->fd, path); if (res < 0) return -1; @@ -231,7 +231,7 @@ wg_user_set_device(struct pool *pool, uint size = tbsize; int len = user_put_device(dev, &pos, &size); - log(L_TRACE "WG: put %d %s", size, sock->tbuf); + DBG(L_TRACE "WG: put %d %s", size, sock->tbuf); if (len < 0) { @@ -240,7 +240,7 @@ wg_user_set_device(struct pool *pool, } res = sk_send(sock, tbsize - size); /* Send data, <0=err, >0=ok, 0=sleep */ - log(L_TRACE "WG: send %d", res); + DBG(L_TRACE "WG: send %d", res); /* abort(); */ return -1; |