tracing: Fix traceoff_on_warning handling on boot command line
authorLuis Claudio R. Goncalves <lclaudio@uudg.org>
Wed, 12 Nov 2014 23:14:00 +0000 (21:14 -0200)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 14 Nov 2014 02:03:41 +0000 (21:03 -0500)
commit933ff9f20220e1339964c7a76a34ca9aaa4a8c37
tree49570a85651d2516ed53a83d3c4b410d80b63a66
parentfe578ba36fe7a118298028031b3ce562e6ea1c4c
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>
kernel/trace/trace.c