linux-trace-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] trace-cmd: Add git version string to trace-cmd --version output
@ 2019-07-05 16:14 Steven Rostedt
  0 siblings, 0 replies; only message in thread
From: Steven Rostedt @ 2019-07-05 16:14 UTC (permalink / raw)
  To: Linux Trace Devel; +Cc: Slavomir Kaslev, Yordan Karadzhov, Tzvetomir Stoyanov


From: "Steven Rostedt (VMware)" <rostedt@goodmis.org>

Commit d74f3845ddebf0 ("trace-cmd: Make the version defines part of
tc-version.h") created a VERSION_GIT define to include in the trace.dat
file. It would also be helpful to have this displayed with the --version
option too.

Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
---
 tracecmd/trace-usage.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tracecmd/trace-usage.c b/tracecmd/trace-usage.c
index 406384c4..2532d92a 100644
--- a/tracecmd/trace-usage.c
+++ b/tracecmd/trace-usage.c
@@ -314,8 +314,8 @@ void usage(char **argv)
 	p = basename(arg);
 
 	printf("\n"
-	       "%s version %s\n\n"
-	       "usage:\n", p, VERSION_STRING);
+	       "%s version %s (%s)\n\n"
+	       "usage:\n", p, VERSION_STRING, VERSION_GIT);
 
 	if (argv[1])
 		help = find_help(argv[1]);
-- 
2.20.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-07-05 16:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-05 16:14 [PATCH] trace-cmd: Add git version string to trace-cmd --version output Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).