diff options
author | Michael Mann <mmann78@netscape.net> | 2016-07-25 22:58:09 -0400 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2016-07-26 04:08:50 +0000 |
commit | 907d49483d24698013fcdaec15b78a149751eecb (patch) | |
tree | 001c978c947dd64932fd2d9749cfc46756ac30dc /epan/epan.c | |
parent | 6fbaf9be34e8745b2781294afdcf2822528a6349 (diff) |
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/epan.c')
-rw-r--r-- | epan/epan.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/epan.c b/epan/epan.c index 0927172570..c40ee9a08d 100644 --- a/epan/epan.c +++ b/epan/epan.c @@ -24,6 +24,7 @@ #include <stdarg.h> #include <wsutil/wsgcrypt.h> +#include <wsutil/ws_printf.h> /* ws_g_warning */ #ifdef HAVE_LIBGNUTLS #include <gnutls/gnutls.h> @@ -222,7 +223,7 @@ epan_get_frame_ts(const epan_t *session, guint32 frame_num) abs_ts = session->get_frame_ts(session->data, frame_num); if (!abs_ts) - g_warning("!!! couldn't get frame ts for %u !!!\n", frame_num); + ws_g_warning("!!! couldn't get frame ts for %u !!!\n", frame_num); return abs_ts; } |