Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Ian Kent and committed by
Linus Torvalds
874d22d6 60d6d04c

+6 -6
+6 -6
fs/autofs/inode.c
··· 82 82 seq_printf(m, ",maxproto=%d", sbi->max_proto); 83 83 84 84 if (autofs_type_offset(sbi->type)) 85 - seq_printf(m, ",offset"); 85 + seq_puts(m, ",offset"); 86 86 else if (autofs_type_direct(sbi->type)) 87 - seq_printf(m, ",direct"); 87 + seq_puts(m, ",direct"); 88 88 else 89 - seq_printf(m, ",indirect"); 89 + seq_puts(m, ",indirect"); 90 90 if (sbi->flags & AUTOFS_SBI_STRICTEXPIRE) 91 - seq_printf(m, ",strictexpire"); 91 + seq_puts(m, ",strictexpire"); 92 92 if (sbi->flags & AUTOFS_SBI_IGNORE) 93 - seq_printf(m, ",ignore"); 93 + seq_puts(m, ",ignore"); 94 94 #ifdef CONFIG_CHECKPOINT_RESTORE 95 95 if (sbi->pipe) 96 96 seq_printf(m, ",pipe_ino=%ld", file_inode(sbi->pipe)->i_ino); 97 97 else 98 - seq_printf(m, ",pipe_ino=-1"); 98 + seq_puts(m, ",pipe_ino=-1"); 99 99 #endif 100 100 return 0; 101 101 }