X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fversion.c;h=9f606bf44396bcad8a8e60dfc54662a044356f3d;hp=722804e8e51a875ab5f9f1cd3e6a3b750e02efb2;hb=0de2479d5f5a287d31c69e34ea5202a69019f224;hpb=a18d95449bcab62b0ed21ea8b93798c2e31bdf62 diff --git a/src/bin/lttng/commands/version.c b/src/bin/lttng/commands/version.c index 722804e8e..9f606bf44 100644 --- a/src/bin/lttng/commands/version.c +++ b/src/bin/lttng/commands/version.c @@ -1,18 +1,8 @@ /* - * Copyright (C) 2011 - David Goulet + * Copyright (C) 2011 David Goulet * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License, version 2 only, - * as published by the Free Software Foundation. + * SPDX-License-Identifier: GPL-2.0-only * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #define _LGPL_SOURCE @@ -66,7 +56,7 @@ static void create_version(struct mi_lttng_version *version) /* * Print the machine interface output of this command. */ -static int print_mi() +static int print_mi(void) { int ret = CMD_SUCCESS; struct mi_writer *writer = NULL; @@ -161,6 +151,15 @@ int cmd_version(int argc, const char **argv) MSG("\n" VERSION_DESCRIPTION "\n"); MSG("Web site: https://lttng.org"); MSG("\n%s", lttng_license); + if (EXTRA_VERSION_NAME[0] != '\0') { + MSG("\nExtra version name: " EXTRA_VERSION_NAME); + } + if (EXTRA_VERSION_DESCRIPTION[0] != '\0') { + MSG("\nExtra version description:\n\t" EXTRA_VERSION_DESCRIPTION); + } + if (EXTRA_VERSION_PATCHES[0] != '\0') { + MSG("\nExtra version patches:\n\t" EXTRA_VERSION_PATCHES); + } } end: