tracing: Skip printing "OK" if failed to disable event

No acutal case found. But logically, we should skip "OK" in case any
error met.

Link: http://lkml.kernel.org/r/[email protected]

Signed-off-by: Yuanhan Liu <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
This commit is contained in:
Yuanhan Liu 2012-08-27 15:13:45 +08:00 • committed by Steven Rostedt
commit 76bab1b78a

View file

@ -1646,9 +1646,11 @@ static __init void event_trace_self_tests(void)
event_test_stuff();
ret = __ftrace_set_clr_event(NULL, system->name, NULL, 0);
if (WARN_ON_ONCE(ret))
if (WARN_ON_ONCE(ret)) {
pr_warning("error disabling system %s\n",
system->name);
continue;
}
pr_cont("OK\n");
}