From 5e4584e18663fb829d8e4df9ebdf4aebf4d0016e Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Mon, 17 Jan 2005 01:11:39 +0000 Subject: Add the source file name and line number to the dissector bug report (not as useful as for bugs caught in the dissector itself, but still may be useful). svn path=/trunk/; revision=13082 --- epan/proto.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'epan/proto.c') diff --git a/epan/proto.c b/epan/proto.c index 9aae991f9b..eac1e1ea86 100644 --- a/epan/proto.c +++ b/epan/proto.c @@ -2093,8 +2093,9 @@ alloc_field_info(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, } } else { if (*length < 0) { - REPORT_DISSECTOR_BUG(g_strdup_printf("\"%s\" - \"%s\" invalid length: %d", - hfinfo->name, hfinfo->abbrev, *length)); + REPORT_DISSECTOR_BUG(g_strdup_printf("\"%s\" - \"%s\" invalid length: %d (%s:%u)", + hfinfo->name, hfinfo->abbrev, *length, + __FILE__, __LINE__)); } } -- cgit v1.2.3