[PATCH] trace-cmd: use pr_stat for version output

From: Josef Bacik
Date: Fri Sep 26 2014 - 14:47:11 EST


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 <jbacik@xxxxxx>
---
trace-input.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/trace-input.c b/trace-input.c
index 8118b22..090ee59 100644
--- a/trace-input.c
+++ b/trace-input.c
@@ -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))
--
1.9.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/