diff options
author | 2017-09-20 16:34:29 +0000 | |
---|---|---|
committer | 2017-09-20 16:34:29 +0000 | |
commit | 4e9378d26d84afa911cc60e18ad0c2acd3019e69 (patch) | |
tree | 71acf1173abb6479b7ff4d6ca7069ae545c3b6f3 | |
parent | Use m_copym() instead of m_dup_pkt() to fix a kernel assert when (diff) | |
download | wireguard-openbsd-4e9378d26d84afa911cc60e18ad0c2acd3019e69.tar.xz wireguard-openbsd-4e9378d26d84afa911cc60e18ad0c2acd3019e69.zip |
Use consistant simple verbiage when SIOC* ioctl's fail.
-rw-r--r-- | sbin/dhclient/kroute.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/dhclient/kroute.c b/sbin/dhclient/kroute.c index a08e15fcce7..6f6bf4c1ba3 100644 --- a/sbin/dhclient/kroute.c +++ b/sbin/dhclient/kroute.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kroute.c,v 1.150 2017/09/20 16:09:42 krw Exp $ */ +/* $OpenBSD: kroute.c,v 1.151 2017/09/20 16:34:29 krw Exp $ */ /* * Copyright 2012 Kenneth R Westerback <krw@openbsd.org> @@ -469,7 +469,7 @@ priv_delete_address(char *name, int ioctlfd, struct imsg_delete_address *imsg) /* SIOCDIFADDR will result in a RTM_DELADDR message we must catch! */ if (ioctl(ioctlfd, SIOCDIFADDR, &ifaliasreq) == -1) { if (errno != EADDRNOTAVAIL) - log_warn("%s: SIOCDIFADDR failed (%s)", log_procname, + log_warn("%s: SIOCDIFADDR %s", log_procname, inet_ntoa(imsg->addr)); } } @@ -511,7 +511,7 @@ priv_set_mtu(char *name, int ioctlfd, struct imsg_set_mtu *imsg) ifr.ifr_mtu = imsg->mtu; if (ioctl(ioctlfd, SIOCSIFMTU, &ifr) == -1) - log_warn("%s: SIOCSIFMTU failed (%d)", log_procname, imsg->mtu); + log_warn("%s: SIOCSIFMTU %d", log_procname, imsg->mtu); } /* @@ -562,7 +562,7 @@ priv_set_address(char *name, int ioctlfd, struct imsg_set_address *imsg) /* No need to set broadcast address. Kernel can figure it out. */ if (ioctl(ioctlfd, SIOCAIFADDR, &ifaliasreq) == -1) - log_warn("%s: SIOCAIFADDR failed (%s)", log_procname, + log_warn("%s: SIOCAIFADDR %s", log_procname, inet_ntoa(imsg->addr)); } |