xfs: replace unnecessary seq_printf with seq_puts
authorZeng Heng <zengheng4@huawei.com>
Sun, 18 Sep 2022 20:48:14 +0000 (06:48 +1000)
committerDave Chinner <david@fromorbit.com>
Sun, 18 Sep 2022 20:48:14 +0000 (06:48 +1000)
Replace seq_printf with seq_puts when const string
in reference, which would avoid to deal with
unnecessary string format.

Signed-off-by: Zeng Heng <zengheng4@huawei.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_stats.c

index 881720c4cf70e9a583c81aefec2c07f27843c22c..90a77cd3ebade814ee72f6b061b5a0a9ac132330 100644 (file)
@@ -125,7 +125,7 @@ static int xqmstat_proc_show(struct seq_file *m, void *v)
 {
        int j;
 
-       seq_printf(m, "qm");
+       seq_puts(m, "qm");
        for (j = XFSSTAT_START_XQMSTAT; j < XFSSTAT_END_XQMSTAT; j++)
                seq_printf(m, " %u", counter_val(xfsstats.xs_stats, j));
        seq_putc(m, '\n');