trace: Replace single-character seq_puts with seq_putc
Printing a single character to a seqfile might as well be done with seq_putc instead of seq_puts; this avoids a strlen() call and a memory access. It also shaves another few bytes off the generated code. Link: http://lkml.kernel.org/r/1415479332-25944-4-git-send-email-linux@rasmusvillemoes.dk Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
This commit is contained in:

committed by
Steven Rostedt

parent
d79ac28fde
commit
1177e43641
@@ -305,7 +305,7 @@ static int t_show(struct seq_file *m, void *v)
|
||||
seq_puts(m, "\\t");
|
||||
break;
|
||||
case '\\':
|
||||
seq_puts(m, "\\");
|
||||
seq_putc(m, '\\');
|
||||
break;
|
||||
case '"':
|
||||
seq_puts(m, "\\\"");
|
||||
|
Reference in New Issue
Block a user