aboutsummaryrefslogtreecommitdiffstats
path: root/tshark.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2010-05-17 18:40:23 +0000
committerGuy Harris <guy@alum.mit.edu>2010-05-17 18:40:23 +0000
commit991c5e9898d057f6b7d2f41397f460931ef5ff83 (patch)
tree95c2cc5755ba14006af226237a6f07eebd5f7e2c /tshark.c
parent01c752e5efd10bdc5ca280d5e03dd19be466d9cb (diff)
When dumpcap is run to get an interface list, interface capabilities, or
interface statistics, have its error messages come out as sync-pipe errors, have it send a sync-pipe "success" message on success, and have the callers get that message and display it. svn path=/trunk/; revision=32843
Diffstat (limited to 'tshark.c')
-rw-r--r--tshark.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tshark.c b/tshark.c
index 46d211377d..5533881219 100644
--- a/tshark.c
+++ b/tshark.c
@@ -1646,9 +1646,7 @@ main(int argc, char *argv[])
global_capture_opts.monitor_mode,
&err_str);
if (caps == NULL) {
- cmdarg_err("The list of data link types for the capture device \"%s\" could not be obtained (%s)."
- "Please check to make sure you have sufficient permissions, and that\n"
- "you have the proper interface or pipe specified.\n", global_capture_opts.iface, err_str);
+ cmdarg_err("%s", err_str);
g_free(err_str);
exit(2);
}