aboutsummaryrefslogtreecommitdiffstats
path: root/epan/proto.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-01-17 01:11:39 +0000
committerGuy Harris <guy@alum.mit.edu>2005-01-17 01:11:39 +0000
commit5e4584e18663fb829d8e4df9ebdf4aebf4d0016e (patch)
tree69dabeb853ead6bab349c78a20938e562cb14ec0 /epan/proto.c
parentdf98de72ed8efe733c693683c7f6eefbaa6907a3 (diff)
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
Diffstat (limited to 'epan/proto.c')
-rw-r--r--epan/proto.c5
1 files changed, 3 insertions, 2 deletions
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__));
}
}