summaryrefslogtreecommitdiff
path: root/accel-pppd/ifcfg.c
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2016-04-30 20:44:12 +0300
committerDmitry Kozlov <xeb@mail.ru>2016-04-30 20:44:12 +0300
commit08c023d6e1151a57095984f15b74be23e32f3ebe (patch)
treee5265734913861150c9bbb608007a725b7d6ae02 /accel-pppd/ifcfg.c
parent249dde4bbade8da12f80e64acef8826a4af0b567 (diff)
downloadaccel-ppp-08c023d6e1151a57095984f15b74be23e32f3ebe.tar.gz
accel-ppp-08c023d6e1151a57095984f15b74be23e32f3ebe.zip
more verbose interface rename error message
Diffstat (limited to 'accel-pppd/ifcfg.c')
-rw-r--r--accel-pppd/ifcfg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/accel-pppd/ifcfg.c b/accel-pppd/ifcfg.c
index 3a1fffd0..1d71cd96 100644
--- a/accel-pppd/ifcfg.c
+++ b/accel-pppd/ifcfg.c
@@ -1,4 +1,4 @@
-#include <unistd.h>
+[6~#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
@@ -298,7 +298,7 @@ int __export ap_session_rename(struct ap_session *ses, const char *ifname, int l
if (!ses->ifname_rename)
ses->ifname_rename = _strdup(ifr.ifr_newname);
else
- log_ppp_warn("interface rename failed: %s\n", strerror(errno));
+ log_ppp_warn("interface rename to %s failed: %s\n", ifr.ifr_newname, strerror(errno));
} else {
log_ppp_info2("rename interface to '%s'\n", ifr.ifr_newname);
memcpy(ses->ifname, ifname, len);