projects
/
people
/
alex
/
keepalived.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f146920
)
dont log netlink skipping nl_cmd msg.
author
Alexandre Cassen
<acassen@freebox.fr>
Thu, 1 Oct 2009 07:49:01 +0000
(09:49 +0200)
committer
Alexandre Cassen
<acassen@freebox.fr>
Thu, 1 Oct 2009 07:49:01 +0000
(09:49 +0200)
Avoid annoying skipping log message.
keepalived/vrrp/vrrp_netlink.c
patch
|
blob
|
history
diff --git
a/keepalived/vrrp/vrrp_netlink.c
b/keepalived/vrrp/vrrp_netlink.c
index
f25eae1
..
e437f39
100644
(file)
--- 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;
}
}