@@ -177,7 +177,7 @@
ret = ioctl(dco->fd, SIOCSDRVSPEC, &drv);
if (ret)
{
- msg(M_ERR | M_ERRNO, "Failed to create new peer");
+ msg(M_ERR, "Failed to create new peer");
}
free(drv.ifd_data);
@@ -317,7 +317,7 @@
ret = ioctl(tt->dco.fd, SIOCIFDESTROY, &ifr);
if (ret)
{
- msg(M_ERR | M_ERRNO, "Failed to remove interface %s", ifr.ifr_name);
+ msg(M_ERR, "Failed to remove interface %s", ifr.ifr_name);
}
tt->dco.ifname[0] = 0;
@@ -473,7 +473,7 @@
ret = ioctl(dco->fd, SIOCSDRVSPEC, &drv);
if (ret)
{
- msg(M_ERR | M_ERRNO, "Failed to start vpn");
+ msg(M_ERR, "Failed to start vpn");
}
return ret;
@@ -511,7 +511,7 @@
ret = ioctl(dco->fd, SIOCSDRVSPEC, &drv);
if (ret)
{
- msg(M_ERR | M_ERRNO, "Failed to set key");
+ msg(M_ERR, "Failed to set key");
}
else
{
@@ -611,13 +611,13 @@
int ack_pipe_fd[2];
if (pipe(dns_pipe_fd) != 0 || pipe(ack_pipe_fd) != 0)
{
- msg(M_ERR | M_ERRNO, "run_dns_up_down: unable to create pipes");
+ msg(M_WARN | M_ERRNO, "run_dns_up_down: unable to create pipes");
return false;
}
updown_runner->pid = fork();
if (updown_runner->pid == -1)
{
- msg(M_ERR | M_ERRNO, "run_dns_up_down: unable to fork");
+ msg(M_WARN | M_ERRNO, "run_dns_up_down: unable to fork");
close(dns_pipe_fd[0]);
close(dns_pipe_fd[1]);
close(ack_pipe_fd[0]);
@@ -747,7 +747,7 @@
{
continue;
}
- msg(M_ERR | M_ERRNO, "could not send dns vars filename");
+ msg(M_WARN | M_ERRNO, "could not send dns vars filename");
}
break;
}
@@ -762,7 +762,7 @@
{
continue;
}
- msg(M_ERR | M_ERRNO, "could not receive dns updown status");
+ msg(M_WARN | M_ERRNO, "could not receive dns updown status");
}
break;
}
@@ -3011,7 +3011,7 @@
/* Retrieve the assigned interface name. */
if (getsockopt(fd, SYSPROTO_CONTROL, UTUN_OPT_IFNAME, utunname, &utunname_len))
{
- msg(M_ERR | M_ERRNO, "Error retrieving utun interface name");
+ msg(M_ERR, "Error retrieving utun interface name");
}
tt->actual_name = string_alloc(utunname, NULL);