[ovs-dev] [tests 02/22] poll-loop: Reduce high-CPU log messages from WARN to INFO.

Ben Pfaff blp at nicira.com
Fri Oct 26 00:01:58 UTC 2012


These can happen occasionally in normal circumstances.

Signed-off-by: Ben Pfaff <blp at nicira.com>
---
 lib/poll-loop.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/poll-loop.c b/lib/poll-loop.c
index 516cf13..c7c9952 100644
--- a/lib/poll-loop.c
+++ b/lib/poll-loop.c
@@ -165,8 +165,8 @@ log_wakeup(const char *where, const struct pollfd *pollfd, int timeout)
     cpu_usage = get_cpu_usage();
     if (VLOG_IS_DBG_ENABLED()) {
         level = VLL_DBG;
-    } else if (cpu_usage > 50 && !VLOG_DROP_WARN(&rl)) {
-        level = VLL_WARN;
+    } else if (cpu_usage > 50 && !VLOG_DROP_INFO(&rl)) {
+        level = VLL_INFO;
     } else {
         return;
     }
-- 
1.7.2.5




More information about the dev mailing list