summaryrefslogtreecommitdiffstats
path: root/include/linux/seq_file.h
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2012-06-11 13:16:35 +0100
committerSteven Whitehouse <swhiteho@redhat.com>2012-06-11 13:16:35 +0100
commita4808147dcf1ecf2f76212a78fd9692b3c112f47 (patch)
tree18d51f7b18416f3483e58b23da87d5f239325107 /include/linux/seq_file.h
parent90306c41dc3d8e5f12ecd0193dae99e0e7f6e896 (diff)
downloadop-kernel-dev-a4808147dcf1ecf2f76212a78fd9692b3c112f47.zip
op-kernel-dev-a4808147dcf1ecf2f76212a78fd9692b3c112f47.tar.gz
seq_file: Add seq_vprintf function and export it
The existing seq_printf function is rewritten in terms of the new seq_vprintf which is also exported to modules. This allows GFS2 (and potentially other seq_file users) to have a vprintf based interface and to avoid an extra copy into a temporary buffer in some cases. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com> Reported-by: Eric Dumazet <eric.dumazet@gmail.com> Acked-by: Al Viro <viro@ZenIV.linux.org.uk>
Diffstat (limited to 'include/linux/seq_file.h')
-rw-r--r--include/linux/seq_file.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/seq_file.h b/include/linux/seq_file.h
index fc61854..83c44ee 100644
--- a/include/linux/seq_file.h
+++ b/include/linux/seq_file.h
@@ -86,6 +86,7 @@ int seq_puts(struct seq_file *m, const char *s);
int seq_write(struct seq_file *seq, const void *data, size_t len);
__printf(2, 3) int seq_printf(struct seq_file *, const char *, ...);
+__printf(2, 0) int seq_vprintf(struct seq_file *, const char *, va_list args);
int seq_path(struct seq_file *, const struct path *, const char *);
int seq_dentry(struct seq_file *, struct dentry *, const char *);
OpenPOWER on IntegriCloud