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 --- trafgen.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'trafgen.c') diff --git a/trafgen.c b/trafgen.c index 762d0f9..3457bfd 100644 --- a/trafgen.c +++ b/trafgen.c @@ -46,6 +46,7 @@ #include "mac80211.h" #include "ioops.h" #include "irq.h" +#include "config.h" #include "built_in.h" #include "trafgen_conf.h" #include "tprintf.h" @@ -281,8 +282,9 @@ static void __noreturn example(void) static void __noreturn version(void) { - printf("\ntrafgen %s, multithreaded zero-copy network packet generator\n", VERSION_LONG); - puts("http://www.netsniff-ng.org\n\n" + printf("\ntrafgen %s, Git id: %s\n", VERSION_LONG, GITVERSION); + puts("multithreaded zero-copy network packet generator\n" + "http://www.netsniff-ng.org\n\n" "Please report bugs to \n" "Copyright (C) 2011-2013 Daniel Borkmann ,\n" "Swiss federal institute of technology (ETH Zurich)\n" -- cgit v1.2.3-54-g00ecf