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 --- staging/mausezahn.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'staging/mausezahn.c') diff --git a/staging/mausezahn.c b/staging/mausezahn.c index 7831b90..759ac28 100644 --- a/staging/mausezahn.c +++ b/staging/mausezahn.c @@ -27,6 +27,7 @@ #include "mz.h" #include "cli.h" #include "mops.h" +#include "config.h" #include "llist.h" #include "die.h" @@ -170,8 +171,9 @@ static void help(void) static void version(void) { - printf("\nmausezahn %s, a fast versatile traffic generator\n", VERSION_LONG); - puts("http://www.netsniff-ng.org\n\n" + printf("\nmausezahn %s, Git id: %s\n", VERSION_LONG, GITVERSION); + puts("a fast versatile traffic generator\n" + "http://www.netsniff-ng.org\n\n" "Please report bugs to \n" "Copyright (C) 2008-2010 Herbert Haas ,\n" "Copyright (C) 2011 Daniel Borkmann ,\n" -- cgit v1.2.3-54-g00ecf