diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2011-01-13 04:00:32 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-13 19:03:16 +0300 |
commit | 9d6de12f70d2fb1487c4f482a21fed25fe74e0fd (patch) | |
tree | a5bc7cb77c710418c44e2b1c009e80d79e12e3ab /fs/proc/base.c | |
parent | a2ade7b6ca37c808128810687cd56e8a44443e65 (diff) | |
download | linux-9d6de12f70d2fb1487c4f482a21fed25fe74e0fd.tar.xz |
proc: use seq_puts()/seq_putc() where possible
For string without format specifiers, use seq_puts().
For seq_printf("\n"), use seq_putc('\n').
text data bss dec hex filename
61866 488 112 62466 f402 fs/proc/proc.o
61729 488 112 62329 f379 fs/proc/proc.o
----------------------------------------------------
-139
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/proc/base.c')
-rw-r--r-- | fs/proc/base.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c index 336b79803e82..bf6ba967cffb 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c @@ -386,7 +386,7 @@ static int lstats_show_proc(struct seq_file *m, void *v) break; seq_printf(m, " %ps", (void *)bt); } - seq_printf(m, "\n"); + seq_putc(m, '\n'); } } |