diff options
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2014-10-29 13:48:37 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2014-11-19 22:01:10 -0500 |
commit | dd23180aacf4b27d48f40b27249f1e58c8df03be (patch) | |
tree | 18b658af8993237ed6194dc5328de7d182df6a59 /include/linux/seq_buf.h | |
parent | 3a161d99c43ce74c76aecff309be4c3ba455e823 (diff) | |
download | linux-dd23180aacf4b27d48f40b27249f1e58c8df03be.tar.gz linux-dd23180aacf4b27d48f40b27249f1e58c8df03be.tar.bz2 linux-dd23180aacf4b27d48f40b27249f1e58c8df03be.zip |
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>
Diffstat (limited to 'include/linux/seq_buf.h')
-rw-r--r-- | include/linux/seq_buf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/seq_buf.h b/include/linux/seq_buf.h index 4f7a96a9d71a..38770688a627 100644 --- a/include/linux/seq_buf.h +++ b/include/linux/seq_buf.h @@ -73,7 +73,7 @@ extern int seq_buf_putc(struct seq_buf *s, unsigned char c); extern int seq_buf_putmem(struct seq_buf *s, const void *mem, unsigned int len); extern int seq_buf_putmem_hex(struct seq_buf *s, const void *mem, unsigned int len); -extern int seq_buf_path(struct seq_buf *s, const struct path *path); +extern int seq_buf_path(struct seq_buf *s, const struct path *path, const char *esc); extern int seq_buf_bitmask(struct seq_buf *s, const unsigned long *maskp, int nmaskbits); |