OSDN Git Service

staging: lustre: Change 'seq_printf' to 'seq_puts'
authorRehas Sachdeva <aquannie@gmail.com>
Thu, 15 Sep 2016 12:52:10 +0000 (18:22 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Sep 2016 17:28:36 +0000 (19:28 +0200)
Fixes checkpatch.pl warning: Prefer seq_puts to seq_printf.
This can be done as both have same type of first two arguments in their
function definition.

Signed-off-by: Rehas Sachdeva <aquannie@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/lproc_llite.c

index 4e82db8..af233ea 100644 (file)
@@ -774,7 +774,7 @@ static int ll_sbi_flags_seq_show(struct seq_file *m, void *v)
                flags >>= 1;
                ++i;
        }
-       seq_printf(m, "\b\n");
+       seq_puts(m, "\b\n");
        return 0;
 }