tracing/user_events: Use seq_putc() in two functions

Single characters should be put into a sequence. Thus use the corresponding
function “seq_putc” for selected calls.

The source code was transformed by using the Coccinelle software.

Link: https://patch.msgid.link/6bcaa4da-05c6-4097-90f5-3969f8a1dfbc@web.de
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
This commit is contained in:
Markus Elfring 2026-06-22 16:37:18 +02:00 committed by Steven Rostedt
parent 935601a427
commit 6e6179ad94

View File

@ -1838,7 +1838,7 @@ static int user_event_show(struct seq_file *m, struct dyn_event *ev)
list_for_each_entry_reverse(field, head, link) {
if (depth == 0)
seq_puts(m, " ");
seq_putc(m, ' ');
else
seq_puts(m, "; ");
@ -1850,7 +1850,7 @@ static int user_event_show(struct seq_file *m, struct dyn_event *ev)
depth++;
}
seq_puts(m, "\n");
seq_putc(m, '\n');
return 0;
}
@ -2819,13 +2819,13 @@ static int user_seq_show(struct seq_file *m, void *p)
busy++;
}
seq_puts(m, "\n");
seq_putc(m, '\n');
active++;
}
mutex_unlock(&group->reg_mutex);
seq_puts(m, "\n");
seq_putc(m, '\n');
seq_printf(m, "Active: %d\n", active);
seq_printf(m, "Busy: %d\n", busy);