Skip to content

Commit 90f59ee

Browse files
Daniel Bristot de Oliveirarostedt
authored andcommitted
rtla/osnoise: Fix error message when failing to enable trace instance
When a trace instance creation fails, tools are printing: Could not enable -> osnoiser <- tracer for tracing Print the actual (and correct) name of the tracer it fails to enable. Link: https://lkml.kernel.org/r/53ef0582605af91eca14b19dba9fc9febb95d4f9.1645206561.git.bristot@kernel.org Fixes: b169637 ("rtla: Helper functions for rtla") Cc: Jonathan Corbet <[email protected]> Signed-off-by: Daniel Bristot de Oliveira <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 parent 316f710 commit 90f59ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/tracing/rtla/src/osnoise.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,7 @@ struct osnoise_tool *osnoise_init_trace_tool(char *tracer)
810810

811811
retval = enable_tracer_by_name(trace->trace.inst, tracer);
812812
if (retval) {
813-
err_msg("Could not enable osnoiser tracer for tracing\n");
813+
err_msg("Could not enable %s tracer for tracing\n", tracer);
814814
goto out_err;
815815
}
816816

0 commit comments

Comments
 (0)