Skip to content

Commit

Permalink
arguments: print "-devel" when LXC_DEVEL is true
Browse files Browse the repository at this point in the history
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 <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner authored and stgraber committed Oct 17, 2017
1 parent f9d14b5 commit 85d1047
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/arguments.c
Expand Up @@ -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);
}

Expand Down

0 comments on commit 85d1047

Please sign in to comment.