diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2013-09-03 13:20:59 +0400 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2013-09-03 13:20:59 +0400 |
commit | e0419f8ff0d1e42eef22eebba561cb91ebf902a0 (patch) | |
tree | 852a18946595b1320b14eae1728bccf4186dd7ef /accel-pppd/ctrl/ipoe/ipoe.c | |
parent | 79c280518bc66560f22e9efb1d03ee1d4ff16f0b (diff) | |
download | accel-ppp-e0419f8ff0d1e42eef22eebba561cb91ebf902a0.tar.gz accel-ppp-e0419f8ff0d1e42eef22eebba561cb91ebf902a0.zip |
ipoe: do proper loggin of interface options
Diffstat (limited to 'accel-pppd/ctrl/ipoe/ipoe.c')
-rw-r--r-- | accel-pppd/ctrl/ipoe/ipoe.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c index c4a8e47b..f0010541 100644 --- a/accel-pppd/ctrl/ipoe/ipoe.c +++ b/accel-pppd/ctrl/ipoe/ipoe.c @@ -2022,7 +2022,11 @@ static void add_interface(const char *ifname, int ifindex, const char *opt, int return; } - log_info2("ipoe: start interface %s %s\n", ifname, str0 ? str0 : ""); + opt = strchr(opt, ','); + if (opt) + opt++; + + log_info2("ipoe: start interface %s (%s)\n", ifname, opt ? opt : ""); memset(&ifr, 0, sizeof(ifr)); strcpy(ifr.ifr_name, ifname); |