summaryrefslogtreecommitdiff
path: root/sysdep
diff options
context:
space:
mode:
authorArthur Gautier <baloo@gandi.net>2018-12-28 19:38:18 +0100
committerOndrej Zajicek (work) <santiago@crfreenet.org>2018-12-28 19:41:18 +0100
commit4659b2ae45672868646900c81c963da221363b40 (patch)
tree4bdff4383ce87344037ed49fa29c2f5b924e6ce7 /sysdep
parentc2d29dd197cbff6c143a570576c81bee20fc06eb (diff)
KRT: Fix debug messages in netlink code
Diffstat (limited to 'sysdep')
-rw-r--r--sysdep/linux/netlink.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdep/linux/netlink.c b/sysdep/linux/netlink.c
index 834504d0..d773743d 100644
--- a/sysdep/linux/netlink.c
+++ b/sysdep/linux/netlink.c
@@ -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",
ifi->index, ifi->name,
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)
ifa_update(&ifa);
@@ -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",
ifi->index, ifi->name,
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)
ifa_update(&ifa);
@@ -1526,7 +1526,7 @@ nl_parse_route(struct nl_parse_state *s, struct nlmsghdr *h)
/* Do we know this table? */
p = HASH_FIND(nl_table_map, RTH, i->rtm_family, table_id);
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))
SKIP("src prefix for non-SADR channel\n");