From c07bdeb7419baf7f66e8de386744be9ec4891bb3 Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Tue, 9 Jul 2013 11:15:14 +0200 Subject: all: show git id in --version information In order to be able to better track regressions or to give support, let us track the Git id as well in version information. This makes the ``--version'' switch actually useful. Signed-off-by: Daniel Borkmann --- ifpps.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'ifpps.c') diff --git a/ifpps.c b/ifpps.c index 0ae77cb..3a59c10 100644 --- a/ifpps.c +++ b/ifpps.c @@ -27,6 +27,7 @@ #include "ioops.h" #include "promisc.h" #include "cpus.h" +#include "config.h" #include "built_in.h" #include "screen.h" @@ -130,9 +131,9 @@ static void __noreturn help(void) static void __noreturn version(void) { - printf("\nifpps %s, top-like kernel networking and system statistics\n", - VERSION_LONG); - puts("http://www.netsniff-ng.org\n\n" + printf("\nifpps %s, Git id: %s\n", VERSION_LONG, GITVERSION); + puts("top-like kernel networking and system statistics\n" + "http://www.netsniff-ng.org\n\n" "Please report bugs to \n" "Copyright (C) 2009-2013 Daniel Borkmann \n" "Swiss federal institute of technology (ETH Zurich)\n" -- cgit v1.2.3-54-g00ecf