mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 10:04:04 +02:00
perf trace: Fix return value of trace__fprintf_tp_fields
This function formerly returned twice the number of bytes printed. Signed-off-by: Benjamin Peterson <benjamin@engflow.com> Reviewed-by: Howard Chu <howardchu95@gmail.com> Link: https://lore.kernel.org/r/20250123-void-fprintf_tp_fields-v2-1-6038f8224987@engflow.com Signed-off-by: Namhyung Kim <namhyung@kernel.org>
This commit is contained in:
parent
91b7747dc7
commit
0aefb3df8b
|
|
@ -3080,7 +3080,7 @@ static size_t trace__fprintf_tp_fields(struct trace *trace, struct evsel *evsel,
|
|||
printed += syscall_arg_fmt__scnprintf_val(arg, bf + printed, size - printed, &syscall_arg, val);
|
||||
}
|
||||
|
||||
return printed + fprintf(trace->output, "%.*s", (int)printed, bf);
|
||||
return fprintf(trace->output, "%.*s", (int)printed, bf);
|
||||
}
|
||||
|
||||
static int trace__event_handler(struct trace *trace, struct evsel *evsel,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user