From: Donald Sharp Date: Fri, 22 Jun 2018 18:26:56 +0000 (-0400) Subject: zebra: Log how we got to this failure. X-Git-Tag: frr-6.1-dev~249^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=6ca7b664b5d842a63f795fb42c8c8540868cfcf1;p=matthieu%2Ffrr.git 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 --- 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; } }