projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vlog: Apply rate-limiting everywhere it seems warranted.
[openvswitch]
/
lib
/
poll-loop.c
diff --git
a/lib/poll-loop.c
b/lib/poll-loop.c
index 6bf05ddd6763f9c0375d95c86b06f800d7f71ed3..d65c6afb19ebb9c266a3833f19146dae18e00ec6 100644
(file)
--- a/
lib/poll-loop.c
+++ b/
lib/poll-loop.c
@@
-146,7
+146,8
@@
poll_block(void)
retval = time_poll(pollfds, n_pollfds, timeout);
if (retval < 0) {
retval = time_poll(pollfds, n_pollfds, timeout);
if (retval < 0) {
- VLOG_ERR("poll: %s", strerror(-retval));
+ static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(1, 5);
+ VLOG_ERR_RL(&rl, "poll: %s", strerror(-retval));
}
for (node = waiters.next; node != &waiters; ) {
}
for (node = waiters.next; node != &waiters; ) {