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/dhcpv6-ia.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/dhcpv6-ia.c')
-rw-r--r-- | src/dhcpv6-ia.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dhcpv6-ia.c b/src/dhcpv6-ia.c index b9120d3..06e418a 100644 --- a/src/dhcpv6-ia.c +++ b/src/dhcpv6-ia.c @@ -83,7 +83,7 @@ int dhcpv6_setup_ia_interface(struct interface *iface, bool enable) border = calloc(1, sizeof(*border)); if (!border) { - syslog(LOG_ERR, "Calloc failed for border on interface %s", iface->ifname); + syslog(LOG_ERR, "Calloc failed for border on %s", iface->name); return -1; } @@ -100,8 +100,8 @@ int dhcpv6_setup_ia_interface(struct interface *iface, bool enable) size_t duid_len = lease->duid_len ? lease->duid_len : 14; struct dhcpv6_assignment *a = calloc(1, sizeof(*a) + duid_len); if (!a) { - syslog(LOG_ERR, "Calloc failed for static lease assignment on interface %s", - iface->ifname); + syslog(LOG_ERR, "Calloc failed for static lease assignment on %s", + iface->name); return -1; } @@ -1111,7 +1111,7 @@ static void dhcpv6_log(uint8_t msgtype, struct interface *iface, time_t now, } syslog(LOG_WARNING, "DHCPV6 %s %s from %s on %s: %s %s", type, (is_pd) ? "IA_PD" : "IA_NA", - duidbuf, iface->ifname, status, leasebuf); + duidbuf, iface->name, status, leasebuf); } static bool dhcpv6_ia_on_link(const struct dhcpv6_ia_hdr *ia, struct dhcpv6_assignment *a, |