From 6ca7b664b5d842a63f795fb42c8c8540868cfcf1 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Fri, 22 Jun 2018 14:26:56 -0400 Subject: [PATCH] zebra: Log how we got to this failure. When a filter function fails to work correctly, we get an error message that something has gone wrong. Unfortunately we may not have any clues as to where the decode failure happened. Add a backtrace to give us a clue. Signed-off-by: Donald Sharp --- zebra/kernel_netlink.c | 1 + 1 file changed, 1 insertion(+) diff --git a/zebra/kernel_netlink.c b/zebra/kernel_netlink.c index 6d164cfdab..7334c8094a 100644 --- a/zebra/kernel_netlink.c +++ b/zebra/kernel_netlink.c @@ -772,6 +772,7 @@ int netlink_parse_info(int (*filter)(struct nlmsghdr *, ns_id_t, int), error = (*filter)(h, zns->ns_id, startup); if (error < 0) { zlog_err("%s filter function error", nl->name); + zlog_backtrace(LOG_ERR); ret = error; } } -- 2.39.5