]> git.proxmox.com Git - mirror_frr.git/commitdiff
zebra: replace zlog_err with flog_err
authorRafael Zalamena <rzalamena@opensourcerouting.org>
Sat, 29 Dec 2018 09:14:14 +0000 (07:14 -0200)
committerRafael Zalamena <rzalamena@opensourcerouting.org>
Sat, 29 Dec 2018 09:14:14 +0000 (07:14 -0200)
Change the logging mechanism for truncated netlink error messages.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
zebra/kernel_netlink.c

index 399062eeafde9746d7419cce80ccd78746a02dec..360f596b8f0fa51658916efad201d798843f0296 100644 (file)
@@ -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;
                                }