trace-cmd: use pr_stat for version output
PATCH 1/1 trace-cmd: use pr_stat for version output
This allows tools linking against the trace-cmd libraries to supress this output if it is not necessary for them.
Signed-off-by Josef Bacik <[email protected]>
--- trace-input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
trace-input.c +1 -1
@@ -2237,7 +2237,7 @@ struct tracecmd_input *tracecmd_alloc_fd(int fd) version =read_string (handle);if (!version) goto failed_read; -printf ("version = %s\n" , version); +pr_stat ("version = %s\n" , version);free (version);if (do_read_check (handle, buf,1 ))
Signature · 1 line
1.9.3