Skip to content

Commit 0688903

Browse files
tititiou36rostedt
authored andcommitted
tracing/user_events: Slightly simplify user_seq_show()
2 seq_puts() calls can be merged. It saves a few lines of code and a few cycles, should it matter. Cc: Masami Hiramatsu <mhiramat@kernel.org> Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Link: https://lore.kernel.org/845caa94b74cea8d72c158bf1994fe250beee28c.1739979791.git.christophe.jaillet@wanadoo.fr Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
1 parent effd105 commit 0688903

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

kernel/trace/trace_events_user.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2793,11 +2793,8 @@ static int user_seq_show(struct seq_file *m, void *p)
27932793

27942794
seq_printf(m, "%s", EVENT_TP_NAME(user));
27952795

2796-
if (status != 0)
2797-
seq_puts(m, " #");
2798-
27992796
if (status != 0) {
2800-
seq_puts(m, " Used by");
2797+
seq_puts(m, " # Used by");
28012798
if (status & EVENT_STATUS_FTRACE)
28022799
seq_puts(m, " ftrace");
28032800
if (status & EVENT_STATUS_PERF)

0 commit comments

Comments
 (0)