Some arches don't support perf counter and an error message
breaks many tests from the testsuite.  Since the software still
runs without it, just inform that perf counters are not available
with using INFO level instead.

Signed-off-by: Flavio Leitner <f...@redhat.com>
---
 lib/perf-counter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/perf-counter.c b/lib/perf-counter.c
index e2eaefc..be01710 100644
--- a/lib/perf-counter.c
+++ b/lib/perf-counter.c
@@ -76,7 +76,7 @@ perf_event_setup(void)
 
     fd__ = perf_event_open(&pe, 0, -1, -1, 0);
     if (fd__ == -1) {
-        VLOG_ERR("Peformance counter is not available on this platform.\n");
+        VLOG_INFO("Peformance counter is not available on this platform.\n");
     } else {
         ioctl(fd__, PERF_EVENT_IOC_RESET, 0);
         ioctl(fd__, PERF_EVENT_IOC_ENABLE, 0);
-- 
1.8.3.1

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to