From e0419f8ff0d1e42eef22eebba561cb91ebf902a0 Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Tue, 3 Sep 2013 13:20:59 +0400 Subject: ipoe: do proper loggin of interface options --- accel-pppd/ctrl/ipoe/ipoe.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'accel-pppd') diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c index c4a8e47..f001054 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); -- cgit v1.2.3