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/1346051625-25231-1-git-send-email-yuanhan.liu@linux.intel.com Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
This commit is contained in:
parent
d57c5d51a3
commit
76bab1b78a
1 changed files with 3 additions and 1 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue