From f93e6f338e59e02b0cddea85e7d367948d9cf3f2 Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Thu, 19 Apr 2012 17:14:16 +0200 Subject: [PATCH 1/2] Small clean up in debug texts --- sysdep/linux/netlink/netlink.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sysdep/linux/netlink/netlink.c b/sysdep/linux/netlink/netlink.c index c8eed0f3..d9d22d4c 100644 --- a/sysdep/linux/netlink/netlink.c +++ b/sysdep/linux/netlink/netlink.c @@ -756,11 +756,11 @@ nl_parse_route(struct nlmsghdr *h, int scan) if (a[RTA_OIF]) memcpy(&oif, RTA_DATA(a[RTA_OIF]), sizeof(oif)); - DBG("KRT: Got %I/%d, type=%d, oif=%d, table=%d, prid=%d, proto=%s\n", dst, i->rtm_dst_len, i->rtm_type, oif, i->rtm_table, i->rtm_protocol, p->p.name); - p = nl_table_map[i->rtm_table]; /* Do we know this table? */ + DBG("KRT: Got %I/%d, type=%d, oif=%d, table=%d, prid=%d, proto=%s\n", dst, i->rtm_dst_len, i->rtm_type, oif, i->rtm_table, i->rtm_protocol, p ? p->p.name : "(none)"); if (!p) - SKIP("unknown table %d", i->rtm_table); + SKIP("unknown table %d\n", i->rtm_table); + #ifdef IPV6 if (a[RTA_IIF]) From cca970666a90af02eaeb6848bbfc3d5a2222fa21 Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Sun, 22 Apr 2012 14:03:07 +0200 Subject: [PATCH 2/2] Small typo in programmer's documentation. --- lib/resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/resource.c b/lib/resource.c index 24164ec2..42243aa2 100644 --- a/lib/resource.c +++ b/lib/resource.c @@ -352,7 +352,7 @@ mb_alloc(pool *p, unsigned size) * zeroes and creates a memory block resource representing this memory * chunk in the pool @p. * - * Please note that mb_alloc() returns a pointer to the memory + * Please note that mb_allocz() returns a pointer to the memory * chunk, not to the resource, hence you have to free it using * mb_free(), not rfree(). */