Skip to content

Commit

Permalink
tracing: Skip printing "OK" if failed to disable event
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Yuanhan Liu authored and Steven Rostedt committed Sep 14, 2012
1 parent d57c5d5 commit 76bab1b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kernel/trace/trace_events.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit 76bab1b

Please sign in to comment.