summaryrefslogtreecommitdiff
path: root/sysdep
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2020-01-02 10:33:54 +0100
committerMikael Magnusson <mikma@users.sourceforge.net>2020-05-08 18:52:55 +0200
commitecf671475ec2d444230a917fe10e31311f1b33e6 (patch)
tree57e18e3b22c51f3f8ec0d3890cd25314cb4b8796 /sysdep
parent25d8260343709681de75d6186884bc201d9c5cbe (diff)
Wireguard: Replace log with DBG
Diffstat (limited to 'sysdep')
-rw-r--r--sysdep/unix/wg_user.c12
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;