From 8f08a4e74ea8aa56284e6035017adf1c423c4f09 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Tue, 18 Sep 2018 10:09:31 -0700 Subject: Try to discourage the use of APIs via counting. Add the ability to specify maximum function counts for each group to checkAPIs. Add maximum counts for the "termoutput" and "abort" groups where needed. Show summaries in various checkAPI targets. Switch uses of ws_g_warning back to plain g_warning. Change-Id: I5cbddc8c671729e424eed8551f69116d16491976 Reviewed-on: https://code.wireshark.org/review/29721 Petri-Dish: Peter Wu Tested-by: Petri Dish Buildbot Reviewed-by: Peter Wu --- epan/tap.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'epan/tap.c') diff --git a/epan/tap.c b/epan/tap.c index ff51755067..5049d2ec3d 100644 --- a/epan/tap.c +++ b/epan/tap.c @@ -25,7 +25,6 @@ #include #include #include -#include /* ws_g_warning */ static gboolean tapping_is_active=FALSE; @@ -220,7 +219,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){ - ws_g_warning("Too many taps queued"); + g_warning("Too many taps queued"); return; } @@ -613,7 +612,7 @@ remove_tap_listener(void *tapdata) } if(!tl) { - ws_g_warning("remove_tap_listener(): no listener found with that tap data"); + g_warning("remove_tap_listener(): no listener found with that tap data"); return; } } -- cgit v1.2.3