Commit 4659b2ae authored by Arthur Gautier's avatar Arthur Gautier Committed by Ondřej Zajíček

KRT: Fix debug messages in netlink code

parent c2d29dd1
Pipeline #43713 passed with stages
in 4 minutes and 24 seconds
...@@ -953,7 +953,7 @@ nl_parse_addr4(struct ifaddrmsg *i, int scan, int new) ...@@ -953,7 +953,7 @@ nl_parse_addr4(struct ifaddrmsg *i, int scan, int new)
DBG("KIF: IF%d(%s): %s IPA %I, flg %x, net %N, brd %I, opp %I\n", DBG("KIF: IF%d(%s): %s IPA %I, flg %x, net %N, brd %I, opp %I\n",
ifi->index, ifi->name, ifi->index, ifi->name,
new ? "added" : "removed", new ? "added" : "removed",
ifa.ip, ifa.flags, ifa.prefix, ifa.brd, ifa.opposite); ifa.ip, ifa.flags, &ifa.prefix, ifa.brd, ifa.opposite);
if (new) if (new)
ifa_update(&ifa); ifa_update(&ifa);
...@@ -1045,7 +1045,7 @@ nl_parse_addr6(struct ifaddrmsg *i, int scan, int new) ...@@ -1045,7 +1045,7 @@ nl_parse_addr6(struct ifaddrmsg *i, int scan, int new)
DBG("KIF: IF%d(%s): %s IPA %I, flg %x, net %N, brd %I, opp %I\n", DBG("KIF: IF%d(%s): %s IPA %I, flg %x, net %N, brd %I, opp %I\n",
ifi->index, ifi->name, ifi->index, ifi->name,
new ? "added" : "removed", new ? "added" : "removed",
ifa.ip, ifa.flags, ifa.prefix, ifa.brd, ifa.opposite); ifa.ip, ifa.flags, &ifa.prefix, ifa.brd, ifa.opposite);
if (new) if (new)
ifa_update(&ifa); ifa_update(&ifa);
...@@ -1526,7 +1526,7 @@ nl_parse_route(struct nl_parse_state *s, struct nlmsghdr *h) ...@@ -1526,7 +1526,7 @@ nl_parse_route(struct nl_parse_state *s, struct nlmsghdr *h)
/* Do we know this table? */ /* Do we know this table? */
p = HASH_FIND(nl_table_map, RTH, i->rtm_family, table_id); p = HASH_FIND(nl_table_map, RTH, i->rtm_family, table_id);
if (!p) if (!p)
SKIP("unknown table %d\n", table); SKIP("unknown table %u\n", table_id);
if (a[RTA_SRC] && (p->p.net_type != NET_IP6_SADR)) if (a[RTA_SRC] && (p->p.net_type != NET_IP6_SADR))
SKIP("src prefix for non-SADR channel\n"); SKIP("src prefix for non-SADR channel\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment