summaryrefslogtreecommitdiffstats
path: root/zebra/kernel_netlink.c
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@opensourcerouting.org>2018-12-29 10:14:14 +0100
committerRafael Zalamena <rzalamena@opensourcerouting.org>2018-12-29 10:14:14 +0100
commit13ec4c1d5b4fc2f46121c67a4932908b6146ffa9 (patch)
tree4e30fe4881cab0b0a69370206726c56929e40b1e /zebra/kernel_netlink.c
parentzebra: remove duplicated code (diff)
downloadfrr-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.c3
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;
}