projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add --disable-git-version to configure
[lttng-tools.git]
/
src
/
bin
/
lttng
/
commands
/
version.c
diff --git
a/src/bin/lttng/commands/version.c
b/src/bin/lttng/commands/version.c
index d27013689635aac7536b74db8c5cd753620e816b..4e46d724f10941400be812e7582aa4d60750a869 100644
(file)
--- a/
src/bin/lttng/commands/version.c
+++ b/
src/bin/lttng/commands/version.c
@@
-65,6
+65,7
@@
static void create_version(struct mi_lttng_version *version)
version->version_major = VERSION_MAJOR;
version->version_minor = VERSION_MINOR;
version->version_patchlevel = VERSION_PATCHLEVEL;
version->version_major = VERSION_MAJOR;
version->version_minor = VERSION_MINOR;
version->version_patchlevel = VERSION_PATCHLEVEL;
+ strncpy(version->version_commit, GIT_VERSION, NAME_MAX);
strncpy(version->version_name, VERSION_NAME, NAME_MAX);
strncpy(version->package_url, PACKAGE_URL, NAME_MAX);
}
strncpy(version->version_name, VERSION_NAME, NAME_MAX);
strncpy(version->package_url, PACKAGE_URL, NAME_MAX);
}
@@
-163,7
+164,7
@@
int cmd_version(int argc, const char **argv)
if (lttng_opt_mi) {
ret = print_mi();
} else {
if (lttng_opt_mi) {
ret = print_mi();
} else {
- MSG("lttng version "
FULL_VERSION " - " VERSION_NAME
);
+ MSG("lttng version "
VERSION " - " VERSION_NAME GIT_VERSION_PREFIX GIT_VERSION
);
MSG("\n" VERSION_DESCRIPTION "\n");
MSG("Web site: http://lttng.org");
MSG("\n%s", lttng_license);
MSG("\n" VERSION_DESCRIPTION "\n");
MSG("Web site: http://lttng.org");
MSG("\n%s", lttng_license);
This page took
0.028526 seconds
and
4
git commands to generate.