From: Christian Brauner Date: Thu, 12 Oct 2017 08:06:46 +0000 (+0200) Subject: arguments: print "-devel" when LXC_DEVEL is true X-Git-Tag: lxc-2.0.9~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17d359be781845f2e610efc0d6068b0e67dadbd0;p=thirdparty%2Flxc.git arguments: print "-devel" when LXC_DEVEL is true liblxc should inform users that they are using a devel version. This will have liblxc print MAJOR.MINOR.PATCH-devel if LXC_DEVEL is true and MAJOR.MINOR.PATCH otherwise. Signed-off-by: Christian Brauner --- diff --git a/src/lxc/arguments.c b/src/lxc/arguments.c index c6267387f..f16b19562 100644 --- a/src/lxc/arguments.c +++ b/src/lxc/arguments.c @@ -131,7 +131,7 @@ static void print_usage(const struct option longopts[], static void print_version() { - printf("%s\n", LXC_VERSION); + printf("%s%s\n", LXC_VERSION, LXC_DEVEL ? "-devel" : ""); exit(0); }