aboutsummaryrefslogtreecommitdiffstats
path: root/extcap/extcap-base.c
diff options
context:
space:
mode:
Diffstat (limited to 'extcap/extcap-base.c')
-rw-r--r--extcap/extcap-base.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/extcap/extcap-base.c b/extcap/extcap-base.c
index dd20f3bac5..6c1193d0ad 100644
--- a/extcap/extcap-base.c
+++ b/extcap/extcap-base.c
@@ -332,6 +332,16 @@ void extcap_help_add_header(extcap_parameters * extcap, char * help_header)
extcap_help_add_option(extcap, "--debug", "print additional messages");
}
+void extcap_cmdline_debug(char** ar, const unsigned n)
+{
+ GString* cmdline = g_string_new("cmdline: ");
+ unsigned i;
+ for (i = 0; i < n; i++)
+ g_string_append_printf(cmdline, "%s ", ar[i]);
+ g_debug("%s", cmdline->str);
+ g_string_free(cmdline, TRUE);
+}
+
/*
* Editor modelines - https://www.wireshark.org/tools/modelines.html
*