Skip to contentSkip to conversation

fgraph: Use trace_seq_putc() in print_graph_return()

PATCH New Markus Elfring 1 participant 1 message Jun 26

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

---
 kernel/trace/trace_functions_graph.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/trace/trace_functions_graph.c +1 -1
index 0d2d3a2ea7dd..ff7cb1a76b95 100644
@@ -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