]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Fix typoes in code comment and printk in trace_nop.c
authorChunyu Hu <chuhu@redhat.com>
Tue, 8 Mar 2016 13:37:02 +0000 (21:37 +0800)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 8 Mar 2016 16:23:57 +0000 (11:23 -0500)
commit6aa57b897e93109c7eb3c5b6aed8c47c5c5361b3
tree0cc92e84249ef58539dc19d5866d72948273c7db
parent637e63215c9058e6fe5a270cf24adbc9d85754dd
tracing: Fix typoes in code comment and printk in trace_nop.c

echo nop > /sys/kernel/debug/tracing/options/current_tracer
echo 1 > /sys/kernel/debug/tracing/options/test_nop_accept
echo 0 > /sys/kernel/debug/tracing/options/test_nop_accept
echo 1 > /sys/kernel/debug/tracing/options/test_nop_refuse

Before the fix, the dmesg is a bit ugly since a align issue.

[  191.973081] nop_test_accept flag set to 1: we accept. Now cat trace_options to see the result
[  195.156942] nop_test_refuse flag set to 1: we refuse.Now cat trace_options to see the result

After the fix, the dmesg will show aligned log for nop_test_refuse and nop_test_accept.

[ 2718.032413] nop_test_refuse flag set to 1: we refuse. Now cat trace_options to see the result
[ 2734.253360] nop_test_accept flag set to 1: we accept. Now cat trace_options to see the result

Link: http://lkml.kernel.org/r/1457444222-8654-2-git-send-email-chuhu@redhat.com
Signed-off-by: Chunyu Hu <chuhu@redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_nop.c