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>
This commit is contained in:

committed by
Linus Torvalds

parent
a2ade7b6ca
commit
9d6de12f70
@@ -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');
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user