From 8425c80e7fa80810be298020a7ef1edce9a340c5 Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Tue, 24 Jul 2018 15:09:35 +0200 Subject: [PATCH] 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 --- src/tools/tools-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- 2.30.2