From 083023711b5248c5511185e536679020b6696486 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Wed, 18 Feb 2015 14:13:11 +0100 Subject: llmnrd, llmnr-query: Add git id to version output Signed-off-by: Tobias Klauser --- llmnr-query.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'llmnr-query.c') diff --git a/llmnr-query.c b/llmnr-query.c index e7dd2fa..3635a53 100644 --- a/llmnr-query.c +++ b/llmnr-query.c @@ -61,9 +61,10 @@ static void __noreturn usage_and_exit(int status) static void __noreturn version_and_exit(void) { - fprintf(stdout, "llmnr-query %s\n" + fprintf(stdout, "llmnr-query %s (git id %s)\n" "Copyright (C) 2015 Tobias Klauser \n" - "Licensed unter the GNU General Public License, version 2\n", VERSION_STRING); + "Licensed unter the GNU General Public License, version 2\n", + VERSION_STRING, GIT_VERSION); exit(EXIT_SUCCESS); } -- cgit v1.2.3-54-g00ecf