mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2025-04-19 20:58:31 +09:00
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>
This commit is contained in:
parent
effd1059c4
commit
06889030f5
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user