Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tracing: Fix indentation of return statement in print_trace_fmt()

The return statement inside the nested if block in print_trace_fmt()
is not properly indented, making the code structure unclear. This was
flagged by smatch as a warning.

Add proper indentation to the return statement to match the kernel
coding style and improve readability.

Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Link: https://patch.msgid.link/20260210153903.8041-1-tttturtleruss@gmail.com
Signed-off-by: Haoyang LIU <tttturtleruss@gmail.com>
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>

authored by

Haoyang LIU and committed by
Steven Rostedt (Google)
fa4820b8 804c4a22

+1 -1
+1 -1
kernel/trace/trace.c
··· 3537 3537 /* ftrace and system call events are still OK */ 3538 3538 if ((event->type > __TRACE_LAST_TYPE) && 3539 3539 !is_syscall_event(event)) 3540 - return print_event_fields(iter, event); 3540 + return print_event_fields(iter, event); 3541 3541 } 3542 3542 return event->funcs->trace(iter, sym_flags, event); 3543 3543 }