Skip to contentSkip to conversation

trace-cmd: use pr_stat for version output

PATCH New Josef Bacik 1 participant 1 message Sep 26, 2014

lore
Share & tools
lore
#0 lore raw

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.

---
 trace-input.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
trace-input.c +1 -1
index 8118b22..090ee59 100644
@@ -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