From: Alexandre Cassen Date: Thu, 1 Oct 2009 07:49:01 +0000 (+0200) Subject: dont log netlink skipping nl_cmd msg. X-Git-Tag: v1.1.19~2 X-Git-Url: http://git.formilux.org/?a=commitdiff_plain;h=a49a3c63974a20eab1a67fad21a618f9d324b20d;p=people%2Falex%2Fkeepalived.git dont log netlink skipping nl_cmd msg. Avoid annoying skipping log message. --- diff --git a/keepalived/vrrp/vrrp_netlink.c b/keepalived/vrrp/vrrp_netlink.c index f25eae1..e437f39 100644 --- a/keepalived/vrrp/vrrp_netlink.c +++ b/keepalived/vrrp/vrrp_netlink.c @@ -312,15 +312,12 @@ netlink_parse_info(int (*filter) (struct sockaddr_nl *, struct nlmsghdr *), } /* Skip unsolicited messages from cmd channel */ - if (nl != &nl_cmd && h->nlmsg_pid == nl_cmd.snl.nl_pid) { - log_message(LOG_INFO, "Netlink: skipping nl_cmd msg..."); + if (nl != &nl_cmd && h->nlmsg_pid == nl_cmd.snl.nl_pid) continue; - } error = (*filter) (&snl, h); if (error < 0) { - log_message(LOG_INFO, - "Netlink: filter function error"); + log_message(LOG_INFO, "Netlink: filter function error"); ret = error; } }