ip6: print out prefix in some debug messages

This commit is contained in:
Dan Williams 2012-03-05 09:38:38 -06:00
parent 74d962e8c4
commit a9c3fe021a
2 changed files with 4 additions and 3 deletions

View file

@ -446,8 +446,9 @@ nm_ip6_device_sync_from_netlink (NMIP6Device *device, gboolean config_changed)
addr = nl_addr_get_binary_addr (nladdr);
if (inet_ntop (AF_INET6, addr, buf, INET6_ADDRSTRLEN) > 0) {
nm_log_dbg (LOGD_IP6, "(%s): netlink address: %s",
device->iface, buf);
nm_log_dbg (LOGD_IP6, "(%s): netlink address: %s/%d",
device->iface, buf,
rtnl_addr_get_prefixlen (rtnladdr));
}
if (IN6_IS_ADDR_LINKLOCAL (addr)) {

View file

@ -241,7 +241,7 @@ sync_addresses (int ifindex,
if (buf_valid) {
nm_log_dbg (log_domain, "(%s): removing address '%s/%d'",
iface, buf, nl_addr_get_prefixlen (nladdr));
iface, buf, rtnl_addr_get_prefixlen (match_addr));
}
/* Otherwise, match_addr should be removed from the interface. */