From: Bartosz Golaszewski Date: Tue, 24 Jul 2018 13:09:35 +0000 (+0200) Subject: tools: tweak the displayed version format X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=8425c80e7fa80810be298020a7ef1edce9a340c5;p=qemu-gpiodev%2Flibgpiod.git tools: tweak the displayed version format Prepend the version string with a 'v' to stay consistent with git tags we're using. Signed-off-by: Bartosz Golaszewski --- diff --git a/src/tools/tools-common.c b/src/tools/tools-common.c index 4fbc075..4a7a776 100644 --- a/src/tools/tools-common.c +++ b/src/tools/tools-common.c @@ -50,7 +50,7 @@ void die_perror(const char *fmt, ...) void print_version(void) { - printf("%s (libgpiod) %s\n", + printf("%s (libgpiod) v%s\n", program_invocation_short_name, gpiod_version_string()); printf("Copyright (C) 2017-2018 Bartosz Golaszewski\n"); printf("License: LGPLv2.1\n");