Log the success or failure of pcap_open/pcap_create/pcap_open_live.
authorgerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 30 Jun 2011 20:17:26 +0000 (20:17 +0000)
committergerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 30 Jun 2011 20:17:26 +0000 (20:17 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37846 f5534014-38df-0310-8fa8-9805f1628bb7

dumpcap.c

index 3e3a475730f310b8b1b5290d447d7be521d4b986..844c4560695ae3247436dcc406ba723a4b1d12f8 100644 (file)
--- a/dumpcap.c
+++ b/dumpcap.c
@@ -618,6 +618,7 @@ open_capture_device(interface_options *interface_opts,
                                 *open_err_str);
 #endif
     }
+    g_log(LOG_DOMAIN_CAPTURE_CHILD, G_LOG_LEVEL_DEBUG, "open_capture_device %s : %s", pcap_h ? "SUCCESS" : "FAILURE", interface_opts->name);
     return pcap_h;
 }