summaryrefslogtreecommitdiff
path: root/sysdep/unix/wg_user.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdep/unix/wg_user.c')
-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;