From b3593fbe8e18bb441a37d869282574784aa49e0b Mon Sep 17 00:00:00 2001 From: Frank Rowand Date: Tue, 1 May 2012 19:45:00 -0700 Subject: rt-tests: cyclictest avoid unneeded warning Avoid annoying warning message when tracing is not requested and the debug file system is not available. The same test already protects against calling event_enable_all(). Signed-off-by: Frank Rowand Reviewed-by: Darren Hart Signed-off-by: Clark Williams --- src/cyclictest/cyclictest.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cyclictest/cyclictest.c b/src/cyclictest/cyclictest.c index 5a518e7..92df82b 100644 --- a/src/cyclictest/cyclictest.c +++ b/src/cyclictest/cyclictest.c @@ -1611,8 +1611,9 @@ int main(int argc, char **argv) if (trace_fd >= 0) close(trace_fd); - /* turn off all events */ - event_disable_all(); + if (enable_events) + /* turn off all events */ + event_disable_all(); /* turn off the function tracer */ fileprefix = procfileprefix; -- cgit 1.2.3-korg