mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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:
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