X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fpoll-loop.c;h=9855306834cf47744d52ec2d8cc87abb59b1d4eb;hb=a6ca7c672f6d5aaf24111d3414ea132ec36b40d6;hp=7e328bc24ce486b2243cdfce1929c5464f513b02;hpb=f43e80e023378a2c1ef18d3caee9b76d6d2a6d23;p=sliver-openvswitch.git diff --git a/lib/poll-loop.c b/lib/poll-loop.c index 7e328bc24..985530683 100644 --- a/lib/poll-loop.c +++ b/lib/poll-loop.c @@ -16,7 +16,6 @@ #include #include "poll-loop.h" -#include #include #include #include @@ -166,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; } @@ -289,7 +288,7 @@ static struct poll_waiter * new_waiter(int fd, short int events, const char *where) { struct poll_waiter *waiter = xzalloc(sizeof *waiter); - assert(fd >= 0); + ovs_assert(fd >= 0); waiter->fd = fd; waiter->events = events; waiter->where = where;