aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Rostedt (VMware) <rostedt@goodmis.org>2019-07-05 12:10:58 -0400
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2019-07-08 08:30:17 -0400
commiteba17becd5f0181cb66919815b3fefdf4563bb4b (patch)
treef0e98dce6f45a014688fef93f7f0b1367d8fb64c
parent676321400b2e56735e20920ee0a0874df8c6cd6b (diff)
downloadtrace-cmd-eba17becd5f0181cb66919815b3fefdf4563bb4b.tar.gz
trace-cmd: Add git version string to trace-cmd --version output
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>
-rw-r--r--tracecmd/trace-usage.c4
1 files 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]);