net: nbr: Print network interface pointer when adding neighbor

Useful when debugging issues in neighbor management.

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
Jukka Rissanen 2017-09-19 09:55:05 +03:00
parent bc4ce8bda8
commit 4dc2dd87ea
2 changed files with 6 additions and 4 deletions

View file

@ -457,10 +457,11 @@ struct net_nbr *net_ipv6_nbr_add(struct net_if *iface,
net_ipv6_send_ns(iface, NULL, NULL, NULL, addr, false);
}
NET_DBG("[%d] nbr %p state %d router %d IPv6 %s ll %s",
NET_DBG("[%d] nbr %p state %d router %d IPv6 %s ll %s iface %p",
nbr->idx, nbr, state, is_router,
net_sprint_ipv6_addr(addr),
net_sprint_ll_addr(lladdr->addr, lladdr->len));
net_sprint_ll_addr(lladdr->addr, lladdr->len),
nbr->iface);
return nbr;
}

View file

@ -325,9 +325,10 @@ static struct net_nbr *nbr_add(struct net_if *iface,
return NULL;
}
NET_DBG("[%d] nbr %p IPv6 %s ll %s",
NET_DBG("[%d] nbr %p IPv6 %s ll %s iface %p",
nbr->idx, nbr, net_sprint_ipv6_addr(addr),
net_sprint_ll_addr(lladdr->addr, lladdr->len));
net_sprint_ll_addr(lladdr->addr, lladdr->len),
nbr->iface);
return nbr;
}