diff options
author | Ian Kent <raven@themaw.net> | 2019-03-07 19:29:12 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-03-07 21:32:01 -0500 |
commit | 874d22d62bc6dca7ceec48c44d247af0109e0b5b (patch) | |
tree | 6ffca6c9de64ed25afab84c2f2ed01b2d5b72832 | |
parent | 60d6d04ca3abb34d5e89f030dbea440d9715a168 (diff) |
fs/autofs/inode.c: use seq_puts() for simple strings in autofs_show_options()
Fix checkpatch.sh WARNING about the use of seq_printf() to print simple
strings in autofs_show_options(), use seq_puts() in this case.
Link: http://lkml.kernel.org/r/154889012613.4863.12231175554744203482.stgit@pluto-themaw-net
Signed-off-by: Ian Kent <raven@themaw.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | fs/autofs/inode.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/autofs/inode.c b/fs/autofs/inode.c index 8647ecaa89fc..80597b88718b 100644 --- a/fs/autofs/inode.c +++ b/fs/autofs/inode.c | |||
@@ -82,20 +82,20 @@ static int autofs_show_options(struct seq_file *m, struct dentry *root) | |||
82 | seq_printf(m, ",maxproto=%d", sbi->max_proto); | 82 | seq_printf(m, ",maxproto=%d", sbi->max_proto); |
83 | 83 | ||
84 | if (autofs_type_offset(sbi->type)) | 84 | if (autofs_type_offset(sbi->type)) |
85 | seq_printf(m, ",offset"); | 85 | seq_puts(m, ",offset"); |
86 | else if (autofs_type_direct(sbi->type)) | 86 | else if (autofs_type_direct(sbi->type)) |
87 | seq_printf(m, ",direct"); | 87 | seq_puts(m, ",direct"); |
88 | else | 88 | else |
89 | seq_printf(m, ",indirect"); | 89 | seq_puts(m, ",indirect"); |
90 | if (sbi->flags & AUTOFS_SBI_STRICTEXPIRE) | 90 | if (sbi->flags & AUTOFS_SBI_STRICTEXPIRE) |
91 | seq_printf(m, ",strictexpire"); | 91 | seq_puts(m, ",strictexpire"); |
92 | if (sbi->flags & AUTOFS_SBI_IGNORE) | 92 | if (sbi->flags & AUTOFS_SBI_IGNORE) |
93 | seq_printf(m, ",ignore"); | 93 | seq_puts(m, ",ignore"); |
94 | #ifdef CONFIG_CHECKPOINT_RESTORE | 94 | #ifdef CONFIG_CHECKPOINT_RESTORE |
95 | if (sbi->pipe) | 95 | if (sbi->pipe) |
96 | seq_printf(m, ",pipe_ino=%ld", file_inode(sbi->pipe)->i_ino); | 96 | seq_printf(m, ",pipe_ino=%ld", file_inode(sbi->pipe)->i_ino); |
97 | else | 97 | else |
98 | seq_printf(m, ",pipe_ino=-1"); | 98 | seq_puts(m, ",pipe_ino=-1"); |
99 | #endif | 99 | #endif |
100 | return 0; | 100 | return 0; |
101 | } | 101 | } |