aboutsummaryrefslogtreecommitdiffstats
path: root/extcap/sshdump.c
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2017-07-26 21:48:44 +0200
committerDario Lombardo <lomato@gmail.com>2017-07-27 15:19:47 +0000
commit963707ab3c7ba57e52c28f0dd396d97b37446063 (patch)
tree0915145c4101d94de54b7c3316af28b91651c4fb /extcap/sshdump.c
parentf86f54eb9070effb6216861749523d3a32932d47 (diff)
extcap: add command line debug function to extcap-base.
This function is helpful to debug the interaction between the calling UI and the extcap itself. All extcaps have been changed accordingly. Change-Id: I358caf4c50797501672bf77fdd91f7276897078c Reviewed-on: https://code.wireshark.org/review/22806 Reviewed-by: Roland Knall <rknall@gmail.com> Petri-Dish: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Dario Lombardo <lomato@gmail.com>
Diffstat (limited to 'extcap/sshdump.c')
-rw-r--r--extcap/sshdump.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/extcap/sshdump.c b/extcap/sshdump.c
index 525acc2ca0..f7f8b28446 100644
--- a/extcap/sshdump.c
+++ b/extcap/sshdump.c
@@ -330,7 +330,6 @@ int main(int argc, char **argv)
{
int result;
int option_idx = 0;
- int i;
char* remote_host = NULL;
guint16 remote_port = 22;
char* remote_username = NULL;
@@ -479,8 +478,7 @@ int main(int argc, char **argv)
}
}
- for (i = 0; i < argc; i++)
- g_debug("%s", argv[i]);
+ extcap_cmdline_debug(argv, argc);
if (optind != argc) {
g_warning("Unexpected extra option: %s", argv[optind]);