diff options
author | Luis Claudio R. Goncalves <lclaudio@uudg.org> | 2014-11-12 18:14:00 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2014-11-13 21:03:41 -0500 |
commit | 933ff9f20220e1339964c7a76a34ca9aaa4a8c37 (patch) | |
tree | 49570a85651d2516ed53a83d3c4b410d80b63a66 /kernel/trace/trace.c | |
parent | fe578ba36fe7a118298028031b3ce562e6ea1c4c (diff) |
tracing: Fix traceoff_on_warning handling on boot command line
According to the documentation, adding "traceoff_on_warning" to the boot
command line should be enough to enable the feature. But right now it is
necessary to specify "traceoff_on_warning=". Along with fixing that, also
verify if the value passed, if any, is either "0" or "off".
Link: http://lkml.kernel.org/r/20141112231400.GL12281@uudg.org
Signed-off-by: Luis Claudio R. Goncalves <lgoncalv@redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace.c')
-rw-r--r-- | kernel/trace/trace.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 8a528392b1f4..75798ab8eb88 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c | |||
@@ -155,10 +155,11 @@ __setup("ftrace_dump_on_oops", set_ftrace_dump_on_oops); | |||
155 | 155 | ||
156 | static int __init stop_trace_on_warning(char *str) | 156 | static int __init stop_trace_on_warning(char *str) |
157 | { | 157 | { |
158 | __disable_trace_on_warning = 1; | 158 | if ((strcmp(str, "=0") != 0 && strcmp(str, "=off") != 0)) |
159 | __disable_trace_on_warning = 1; | ||
159 | return 1; | 160 | return 1; |
160 | } | 161 | } |
161 | __setup("traceoff_on_warning=", stop_trace_on_warning); | 162 | __setup("traceoff_on_warning", stop_trace_on_warning); |
162 | 163 | ||
163 | static int __init boot_alloc_snapshot(char *str) | 164 | static int __init boot_alloc_snapshot(char *str) |
164 | { | 165 | { |