Commit 06889030 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Steven Rostedt (Google)
Browse files

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: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarSteven Rostedt (Google) <rostedt@goodmis.org>
parent effd1059
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -2793,11 +2793,8 @@ static int user_seq_show(struct seq_file *m, void *p)

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

		if (status != 0)
			seq_puts(m, " #");

		if (status != 0) {
			seq_puts(m, " Used by");
			seq_puts(m, " # Used by");
			if (status & EVENT_STATUS_FTRACE)
				seq_puts(m, " ftrace");
			if (status & EVENT_STATUS_PERF)