summaryrefslogtreecommitdiff
path: root/staging
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-07-09 11:15:14 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-07-09 11:15:14 +0200
commitc07bdeb7419baf7f66e8de386744be9ec4891bb3 (patch)
tree881904b2400c801f9803f388861b93264a6ee992 /staging
parent65c34d8fec7707e93cecd0378d06fa9b184565e8 (diff)
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 <dborkman@redhat.com>
Diffstat (limited to 'staging')
-rw-r--r--staging/mausezahn.c6
1 files changed, 4 insertions, 2 deletions
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 <bugs@netsniff-ng.org>\n"
"Copyright (C) 2008-2010 Herbert Haas <herbert@perihel.at>,\n"
"Copyright (C) 2011 Daniel Borkmann <dborkma@tik.ee.ethz.ch>,\n"