diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-07-09 11:15:14 +0200 |
---|---|---|
committer | Daniel Borkmann <dborkman@redhat.com> | 2013-07-09 11:15:14 +0200 |
commit | c07bdeb7419baf7f66e8de386744be9ec4891bb3 (patch) | |
tree | 881904b2400c801f9803f388861b93264a6ee992 /astraceroute.c | |
parent | 65c34d8fec7707e93cecd0378d06fa9b184565e8 (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 'astraceroute.c')
-rw-r--r-- | astraceroute.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/astraceroute.c b/astraceroute.c index 1bcb9a4..ddf352b 100644 --- a/astraceroute.c +++ b/astraceroute.c @@ -35,6 +35,7 @@ #include "die.h" #include "dev.h" #include "sig.h" +#include "config.h" #include "tprintf.h" #include "pkt_buff.h" #include "proto.h" @@ -233,8 +234,9 @@ static void __noreturn help(void) static void __noreturn version(void) { - printf("\nastraceroute %s, autonomous system trace route utility\n", VERSION_LONG); - puts("http://www.netsniff-ng.org\n\n" + printf("\nastraceroute %s, Git id: %s\n", VERSION_LONG, GITVERSION); + puts("autonomous system trace route utility\n" + "http://www.netsniff-ng.org\n\n" "Please report bugs to <bugs@netsniff-ng.org>\n" "Copyright (C) 2011-2013 Daniel Borkmann <dborkma@tik.ee.ethz.ch>\n" "Swiss federal institute of technology (ETH Zurich)\n" |