diff options
author | Gu Zheng <guz.fnst@cn.fujitsu.com> | 2013-07-22 16:33:32 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-07-30 15:17:03 +0900 |
commit | 2d219c518882d2b2bac77742a6a8979c9dad051a (patch) | |
tree | 2136ce19626fbeb30164ba571e837fef3bd095f9 | |
parent | f0947e5ccedb749b2f701aa5279cd8f848a720a1 (diff) | |
download | linux-stable-2d219c518882d2b2bac77742a6a8979c9dad051a.tar.gz linux-stable-2d219c518882d2b2bac77742a6a8979c9dad051a.tar.bz2 linux-stable-2d219c518882d2b2bac77742a6a8979c9dad051a.zip |
f2fs: use seq_puts()/seq_putc() rather than seq_printf() where possible
For string without format specifiers, using seq_puts()/seq_putc()
instead of seq_printf().
Signed-off-by: Gu Zheng <guz.fnst@cn.fujitsu.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
-rw-r--r-- | fs/f2fs/debug.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/fs/f2fs/debug.c b/fs/f2fs/debug.c index fd12b7ff6e2e..a84b0a8e6854 100644 --- a/fs/f2fs/debug.c +++ b/fs/f2fs/debug.c @@ -253,21 +253,21 @@ static int stat_show(struct seq_file *s, void *v) si->nats, NM_WOUT_THRESHOLD); seq_printf(s, " - SITs: %5d\n - free_nids: %5d\n", si->sits, si->fnids); - seq_printf(s, "\nDistribution of User Blocks:"); - seq_printf(s, " [ valid | invalid | free ]\n"); - seq_printf(s, " ["); + seq_puts(s, "\nDistribution of User Blocks:"); + seq_puts(s, " [ valid | invalid | free ]\n"); + seq_puts(s, " ["); for (j = 0; j < si->util_valid; j++) - seq_printf(s, "-"); - seq_printf(s, "|"); + seq_putc(s, '-'); + seq_putc(s, '|'); for (j = 0; j < si->util_invalid; j++) - seq_printf(s, "-"); - seq_printf(s, "|"); + seq_putc(s, '-'); + seq_putc(s, '|'); for (j = 0; j < si->util_free; j++) - seq_printf(s, "-"); - seq_printf(s, "]\n\n"); + seq_putc(s, '-'); + seq_puts(s, "]\n\n"); seq_printf(s, "SSR: %u blocks in %u segments\n", si->block_count[SSR], si->segment_count[SSR]); seq_printf(s, "LFS: %u blocks in %u segments\n", |