[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1411757220-29334-1-git-send-email-jbacik@fb.com>
Date: Fri, 26 Sep 2014 14:47:00 -0400
From: Josef Bacik <jbacik@...com>
To: <rostedt@...dmis.org>, <linux-kernel@...r.kernel.org>
Subject: [PATCH] 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 <jbacik@...com>
---
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists