fgraph: Use trace_seq_putc() in print_graph_return()
Subsystems (2)
PATCH 1/1 fgraph: Use trace_seq_putc() in print_graph_return()
From: Markus Elfring <[email protected]>
Date: Fri, 26 Jun 2026 09:24:18 +0200
A single closing curly bracket should be put into a trace sequence buffer. Thus use the corresponding function “trace_seq_putc”.
The source code was transformed by using the Coccinelle software.
Signed-off-by Markus Elfring <[email protected]>
--- kernel/trace/trace_functions_graph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/trace/trace_functions_graph.c +1 -1
@@ -1349,7 +1349,7 @@ print_graph_return(struct ftrace_graph_ret_entry *retentry, struct trace_seq *s,* that if the funcgraph-tail option is enabled. */ if (func_match && !(flags &TRACE_GRAPH_PRINT_TAIL )) -trace_seq_puts (s,"}" ); +trace_seq_putc (s,'}' );else trace_seq_printf (s,"} /* %ps */" , (void *)func); }
Signature · 1 line
2.54.0