diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2019-02-03 18:03:42 +0100 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2019-02-03 21:13:16 +0100 |
commit | f21a0a7bbc31ff8b519e566087e5b425c39480c6 (patch) | |
tree | 4bbba898ff47862f8c46878de58e39242fc269df /src/netlink.c | |
parent | edc5fb0e5af19024fcda8c396eabcb578d0af3f3 (diff) |
treewide: align syslog tracing
Use the logical OpenWrt interface name in syslog printing as multiple
logical interfaces can be defined on top of the same device
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'src/netlink.c')
-rw-r--r-- | src/netlink.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/netlink.c b/src/netlink.c index e502be0..9ed91b1 100644 --- a/src/netlink.c +++ b/src/netlink.c @@ -278,8 +278,8 @@ static int cb_rtnl_valid(struct nl_msg *msg, _unused void *arg) return NL_SKIP; inet_ntop(AF_INET6, &event_info.addr, ipbuf, sizeof(ipbuf)); - syslog(LOG_DEBUG, "Netlink %s %s%%%s", add ? "newaddr" : "deladdr", - ipbuf, event_info.iface->ifname); + syslog(LOG_DEBUG, "Netlink %s %s on %s", add ? "newaddr" : "deladdr", + ipbuf, event_info.iface->name); call_netevent_handler_list(add ? NETEV_ADDR6_ADD : NETEV_ADDR6_DEL, &event_info); @@ -292,8 +292,8 @@ static int cb_rtnl_valid(struct nl_msg *msg, _unused void *arg) nla_memcpy(&event_info.addr, nla[IFA_LOCAL], sizeof(event_info.addr)); inet_ntop(AF_INET, &event_info.addr, ipbuf, sizeof(ipbuf)); - syslog(LOG_DEBUG, "Netlink %s %s%%%s", add ? "newaddr" : "deladdr", - ipbuf, event_info.iface->ifname); + syslog(LOG_DEBUG, "Netlink %s %s on %s", add ? "newaddr" : "deladdr", + ipbuf, event_info.iface->name); call_netevent_handler_list(add ? NETEV_ADDR_ADD : NETEV_ADDR_DEL, &event_info); @@ -329,8 +329,8 @@ static int cb_rtnl_valid(struct nl_msg *msg, _unused void *arg) return NL_SKIP; inet_ntop(AF_INET6, &event_info.neigh.dst, ipbuf, sizeof(ipbuf)); - syslog(LOG_DEBUG, "Netlink %s %s%%%s", true ? "newneigh" : "delneigh", - ipbuf, event_info.iface->ifname); + syslog(LOG_DEBUG, "Netlink %s %s on %s", true ? "newneigh" : "delneigh", + ipbuf, event_info.iface->name); event_info.neigh.state = ndm->ndm_state; event_info.neigh.flags = ndm->ndm_flags; |