X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fversion.c;h=768ebb5e14c030825de7a1d5226bc883b8716658;hp=8631cf9482cce8f853fa4dd8530a6c1f9bf600da;hb=456b8d40f14be07cca75a9e22ec77976c895d4d5;hpb=314d52225ce6d9b81d48b7645b035b1c93875369 diff --git a/src/bin/lttng/commands/version.c b/src/bin/lttng/commands/version.c index 8631cf948..768ebb5e1 100644 --- a/src/bin/lttng/commands/version.c +++ b/src/bin/lttng/commands/version.c @@ -65,7 +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; - strncpy(version->version_commit, FULL_VERSION, NAME_MAX); + strncpy(version->version_commit, GIT_VERSION, NAME_MAX); strncpy(version->version_name, VERSION_NAME, NAME_MAX); strncpy(version->package_url, PACKAGE_URL, NAME_MAX); } @@ -164,7 +164,7 @@ int cmd_version(int argc, const char **argv) if (lttng_opt_mi) { ret = print_mi(); } else { - MSG("lttng version " FULL_VERSION " - " VERSION_NAME); + MSG("lttng version " VERSION " - " VERSION_NAME " - " GIT_VERSION); MSG("\n" VERSION_DESCRIPTION "\n"); MSG("Web site: http://lttng.org"); MSG("\n%s", lttng_license);