tracing: Convert seq_buf_path() to be like seq_path()
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Wed, 29 Oct 2014 17:48:37 +0000 (13:48 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Thu, 20 Nov 2014 03:01:10 +0000 (22:01 -0500)
commitdd23180aacf4b27d48f40b27249f1e58c8df03be
tree18b658af8993237ed6194dc5328de7d182df6a59
parent3a161d99c43ce74c76aecff309be4c3ba455e823
tracing: Convert seq_buf_path() to be like seq_path()

Rewrite seq_buf_path() like it is done in seq_path() and allow
it to accept any escape character instead of just "\n".

Making seq_buf_path() like seq_path() will help prevent problems
when converting seq_file to use the seq_buf logic.

Link: http://lkml.kernel.org/r/20141104160222.048795666@goodmis.org
Link: http://lkml.kernel.org/r/20141114011412.338523371@goodmis.org
Tested-by: Jiri Kosina <jkosina@suse.cz>
Acked-by: Jiri Kosina <jkosina@suse.cz>
Reviewed-by: Petr Mladek <pmladek@suse.cz>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
include/linux/seq_buf.h
kernel/trace/seq_buf.c
kernel/trace/trace_seq.c