summaryrefslogtreecommitdiff
path: root/epan/tap.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2016-07-25 22:58:09 -0400
committerAnders Broman <a.broman58@gmail.com>2016-07-26 04:08:50 +0000
commit907d49483d24698013fcdaec15b78a149751eecb (patch)
tree001c978c947dd64932fd2d9749cfc46756ac30dc /epan/tap.c
parent6fbaf9be34e8745b2781294afdcf2822528a6349 (diff)
downloadwireshark-907d49483d24698013fcdaec15b78a149751eecb.tar.gz
Fix some of the checkAPIs.pl warnings for g_warning.
1. Create ws_g_warning for legitimate uses of g_warning 2. Use proto_tree_add_debug_text 3. Comment some out Change-Id: Ida044bf40286b955fdd529c4f9907c8e09b3d7c5 Reviewed-on: https://code.wireshark.org/review/16678 Reviewed-by: Michael Mann <mmann78@netscape.net> Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/tap.c')
-rw-r--r--epan/tap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/tap.c b/epan/tap.c
index eb973410ab..07d49ee489 100644
--- a/epan/tap.c
+++ b/epan/tap.c
@@ -39,6 +39,7 @@
#include <epan/packet_info.h>
#include <epan/dfilter/dfilter.h>
#include <epan/tap.h>
+#include <wsutil/ws_printf.h> /* ws_g_warning */
static gboolean tapping_is_active=FALSE;
@@ -271,7 +272,7 @@ tap_queue_packet(int tap_id, packet_info *pinfo, const void *tap_specific_data)
* rather than having a fixed maximum number of entries?
*/
if(tap_packet_index >= TAP_PACKET_QUEUE_LEN){
- g_warning("Too many taps queued");
+ ws_g_warning("Too many taps queued");
return;
}