diff options
author | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2018-12-29 10:14:14 +0100 |
---|---|---|
committer | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2018-12-29 10:14:14 +0100 |
commit | 13ec4c1d5b4fc2f46121c67a4932908b6146ffa9 (patch) | |
tree | 4e30fe4881cab0b0a69370206726c56929e40b1e /zebra/kernel_netlink.c | |
parent | zebra: remove duplicated code (diff) | |
download | frr-13ec4c1d5b4fc2f46121c67a4932908b6146ffa9.tar.xz frr-13ec4c1d5b4fc2f46121c67a4932908b6146ffa9.zip |
zebra: replace zlog_err with flog_err
Change the logging mechanism for truncated netlink error messages.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to 'zebra/kernel_netlink.c')
-rw-r--r-- | zebra/kernel_netlink.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/zebra/kernel_netlink.c b/zebra/kernel_netlink.c index 399062eea..360f596b8 100644 --- a/zebra/kernel_netlink.c +++ b/zebra/kernel_netlink.c @@ -784,7 +784,8 @@ int netlink_parse_info(int (*filter)(struct nlmsghdr *, ns_id_t, int), if (h->nlmsg_len < NLMSG_LENGTH(sizeof(struct nlmsgerr))) { - zlog_err("%s error: message truncated", + flog_err(EC_ZEBRA_NETLINK_LENGTH_ERROR, + "%s error: message truncated", nl->name); return -1; } |