diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-12-29 18:24:56 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-12-30 02:58:05 +0000 |
commit | aaf709da67942087470f98f0fc5ba92faf15176a (patch) | |
tree | 833aa763abfdec511b866bcc9630839ed2be78e7 /ui/cli/tap-httpstat.c | |
parent | b0da9cf6d4f246e5fdf81466adc9532ab09aa8f8 (diff) |
Use cmdarg_err() to report errors in CLI taps.
Change-Id: Ic6b35220e394f8c67848ed067e4bbddb980d5bc0
Reviewed-on: https://code.wireshark.org/review/31253
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Tested-by: Petri Dish Buildbot
Diffstat (limited to 'ui/cli/tap-httpstat.c')
-rw-r--r-- | ui/cli/tap-httpstat.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/cli/tap-httpstat.c b/ui/cli/tap-httpstat.c index 8005f772fd..0df566ae21 100644 --- a/ui/cli/tap-httpstat.c +++ b/ui/cli/tap-httpstat.c @@ -22,6 +22,8 @@ #include <epan/stat_tap_ui.h> #include <epan/dissectors/packet-http.h> +#include <wsutil/cmdarg_err.h> + void register_tap_listener_httpstat(void); /* used to keep track of the statictics for an entire program interface */ @@ -318,7 +320,7 @@ httpstat_init(const char *opt_arg, void *userdata _U_) /* error, we failed to attach to the tap. clean up */ g_free(sp->filter); g_free(sp); - fprintf (stderr, "tshark: Couldn't register http,stat tap: %s\n", + cmdarg_err("Couldn't register http,stat tap: %s", error_string->str); g_string_free(error_string, TRUE); exit(1); |