diff options
author | Gerald Combs <gerald@wireshark.org> | 2018-09-18 10:09:31 -0700 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2018-09-19 16:07:03 +0000 |
commit | 8f08a4e74ea8aa56284e6035017adf1c423c4f09 (patch) | |
tree | 030955437d3e8b2a2b5ebdcb3e0f9ba77ab42ef9 /epan/value_string.c | |
parent | ca8304249ee986f947b30eaea1d830207165c65e (diff) |
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 <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'epan/value_string.c')
-rw-r--r-- | epan/value_string.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/epan/value_string.c b/epan/value_string.c index 647251fa89..97460bfc8e 100644 --- a/epan/value_string.c +++ b/epan/value_string.c @@ -17,7 +17,6 @@ #include "proto.h" #include "to_str.h" #include "value_string.h" -#include <wsutil/ws_printf.h> /* ws_g_warning */ /* REGULAR VALUE STRING */ @@ -453,14 +452,14 @@ _try_val_to_str_ext_init(const guint32 val, value_string_ext *vse) /* XXX: Should check for dups ?? */ if (type == VS_BIN_TREE) { if (prev_value > vs_p[i].value) { - ws_g_warning("Extended value string '%s' forced to fall back to linear search:\n" + g_warning("Extended value string '%s' forced to fall back to linear search:\n" " entry %u, value %u [%#x] < previous entry, value %u [%#x]", vse->_vs_name, i, vs_p[i].value, vs_p[i].value, prev_value, prev_value); type = VS_SEARCH; break; } if (first_value > vs_p[i].value) { - ws_g_warning("Extended value string '%s' forced to fall back to linear search:\n" + g_warning("Extended value string '%s' forced to fall back to linear search:\n" " entry %u, value %u [%#x] < first entry, value %u [%#x]", vse->_vs_name, i, vs_p[i].value, vs_p[i].value, first_value, first_value); type = VS_SEARCH; |