svn commit: r278620 - stable/10/sys/netinet6
Andrey V. Elsukov
ae at FreeBSD.org
Thu Feb 12 11:10:08 UTC 2015
Author: ae
Date: Thu Feb 12 11:10:07 2015
New Revision: 278620
URL: https://svnweb.freebsd.org/changeset/base/278620
Log:
MFC r278268:
Print IPv6 address in log message instead of address of pointer.
Modified:
stable/10/sys/netinet6/in6.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/netinet6/in6.c
==============================================================================
--- stable/10/sys/netinet6/in6.c Thu Feb 12 10:28:45 2015 (r278619)
+++ stable/10/sys/netinet6/in6.c Thu Feb 12 11:10:07 2015 (r278620)
@@ -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, st
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;
More information about the svn-src-stable-10
mailing list