diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-08-12 18:49:58 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-08-12 18:49:58 +0200 |
commit | abc90e7c5d560973912ea736628d31ead1fe3d5e (patch) | |
tree | 712a26dd98ce0620e6e62fb8b4a58330d94bae9e /src | |
parent | b18a146363f170afa420af04f80d2a91c38f11a3 (diff) | |
download | conntrack-tools-abc90e7c5d560973912ea736628d31ead1fe3d5e.tar.gz conntrack-tools-abc90e7c5d560973912ea736628d31ead1fe3d5e.zip |
cli: insert `conntrack-tools' string in help and error messages
Insert string `conntrack-tools' in error messages to explicitly print
that this version is inside the conntrack-tools package.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/conntrack.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/conntrack.c b/src/conntrack.c index c126557..7c12b39 100644 --- a/src/conntrack.c +++ b/src/conntrack.c @@ -200,7 +200,7 @@ exit_error(enum exittype status, const char *msg, ...) global_option_offset = 0; } va_start(args, msg); - fprintf(stderr,"%s v%s: ", PROGNAME, VERSION); + fprintf(stderr,"%s v%s (conntrack-tools): ", PROGNAME, VERSION); vfprintf(stderr, msg, args); fprintf(stderr, "\n"); va_end(args); @@ -616,7 +616,7 @@ event_sighandler(int s) fflush(stdout); } - fprintf(stderr, "%s v%s: ", PROGNAME, VERSION); + fprintf(stderr, "%s v%s (conntrack-tools): ", PROGNAME, VERSION); fprintf(stderr, "%d flow events has been shown.\n", counter); nfct_close(cth); exit(0); @@ -1254,7 +1254,7 @@ int main(int argc, char *argv[]) exit_error(OTHER_PROBLEM, "Can't open handler"); res = nfct_query(cth, NFCT_Q_FLUSH, &family); nfct_close(cth); - fprintf(stderr, "%s v%s: ", PROGNAME, VERSION); + fprintf(stderr, "%s v%s (conntrack-tools): ",PROGNAME,VERSION); fprintf(stderr,"connection tracking table has been emptied.\n"); break; @@ -1334,7 +1334,7 @@ int main(int argc, char *argv[]) err2str(errno, command)); if (exit_msg[cmd][0]) { - fprintf(stderr, "%s v%s: ", PROGNAME, VERSION); + fprintf(stderr, "%s v%s (conntrack-tools): ",PROGNAME,VERSION); fprintf(stderr, exit_msg[cmd], counter); if (counter == 0 && !(command & (CT_LIST | EXP_LIST))) return EXIT_FAILURE; |