projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement kernel filter support
[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 768ebb5e14c030825de7a1d5226bc883b8716658..a2409c304e06304dc181361275241c2d162cbdf6 100644
(file)
--- a/
src/bin/lttng/commands/version.c
+++ b/
src/bin/lttng/commands/version.c
@@
-16,6
+16,7
@@
*/
#define _GNU_SOURCE
*/
#define _GNU_SOURCE
+#define _LGPL_SOURCE
#include <popt.h>
#include <stdio.h>
#include <stdlib.h>
#include <popt.h>
#include <stdio.h>
#include <stdlib.h>
@@
-164,7
+165,8
@@
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 " VERSION " - " VERSION_NAME " - " GIT_VERSION);
+ MSG("lttng version " VERSION " - " VERSION_NAME "%s",
+ GIT_VERSION[0] == '\0' ? "" : " - " 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.025248 seconds
and
4
git commands to generate.