diff options
author | ae <ae@FreeBSD.org> | 2015-02-12 11:10:07 +0000 |
---|---|---|
committer | ae <ae@FreeBSD.org> | 2015-02-12 11:10:07 +0000 |
commit | 2d05aee53ac436da02d8368efae120be00fb2709 (patch) | |
tree | cf18e2a5642567e18541e4dade66136f2afd8818 /sys/netinet6 | |
parent | 22fe1f654247dc9543cc8fc043ce6bc9e6e5b5d9 (diff) | |
download | FreeBSD-src-2d05aee53ac436da02d8368efae120be00fb2709.zip FreeBSD-src-2d05aee53ac436da02d8368efae120be00fb2709.tar.gz |
MFC r278268:
Print IPv6 address in log message instead of address of pointer.
Diffstat (limited to 'sys/netinet6')
-rw-r--r-- | sys/netinet6/in6.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet6/in6.c b/sys/netinet6/in6.c index 4d946f5..714e33f 100644 --- a/sys/netinet6/in6.c +++ b/sys/netinet6/in6.c @@ -1543,6 +1543,7 @@ in6_purgeaddr(struct ifaddr *ifa) static void in6_unlink_ifa(struct in6_ifaddr *ia, struct ifnet *ifp) { + char ip6buf[INET6_ADDRSTRLEN]; IF_ADDR_WLOCK(ifp); TAILQ_REMOVE(&ifp->if_addrhead, &ia->ia_ifa, ifa_link); @@ -1566,7 +1567,7 @@ in6_unlink_ifa(struct in6_ifaddr *ia, struct ifnet *ifp) if (ia->ia6_ndpr == NULL) { nd6log((LOG_NOTICE, "in6_unlink_ifa: autoconf'ed address " - "%p has no prefix\n", ia)); + "%s has no prefix\n", ip6_sprintf(ip6buf, IA6_IN6(ia)))); } else { ia->ia6_ndpr->ndpr_refcnt--; ia->ia6_ndpr = NULL; |