aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-03-31 23:48:08 +0000
committerGuy Harris <guy@alum.mit.edu>2005-03-31 23:48:08 +0000
commit93692fa5aa695741cd88ca6028a166c025efff45 (patch)
tree3f2651c1cd4148465fb33475def35e7ffcd2d4d8 /epan
parent9432aeb823c9bba0a061eb65cb94fdf36b37be77 (diff)
Fix a couple of "proto_tree_add_text()" calls to pass the right arguments.
svn path=/trunk/; revision=13989
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-ber.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/epan/dissectors/packet-ber.c b/epan/dissectors/packet-ber.c
index e21d257eba..e4f72d5b80 100644
--- a/epan/dissectors/packet-ber.c
+++ b/epan/dissectors/packet-ber.c
@@ -766,9 +766,16 @@ ber_sequence_try_again:
goto ber_sequence_try_again;
}
if ( seq->class == BER_CLASS_UNI){
- proto_tree_add_text(tree, tvb, offset, len, "BER Error: Wrong field in SEQUENCE expected class:%d (%s) tag:%d but found class:%d tag:%d",seq->class,val_to_str(seq->class,ber_class_codes,"Unknown"),seq->tag,val_to_str(seq->tag,ber_uni_tag_codes,"Unknown"),class,tag);
+ proto_tree_add_text(tree, tvb, offset, len,
+ "BER Error: Wrong field in SEQUENCE expected class:%d (%s) tag:%d (%s) but found class:%d tag:%d",
+ seq->class,val_to_str(seq->class,ber_class_codes,"Unknown"),
+ seq->tag,val_to_str(seq->tag,ber_uni_tag_codes,"Unknown"),
+ class,tag);
}else{
- proto_tree_add_text(tree, tvb, offset, len, "BER Error: Wrong field in SEQUENCE expected class:%d (%s) tag:%d(%s) but found class:%d tag:%d",seq->class,val_to_str(seq->class,ber_class_codes,"Unknown"),seq->tag,class,tag);
+ proto_tree_add_text(tree, tvb, offset, len,
+ "BER Error: Wrong field in SEQUENCE expected class:%d (%s) tag:%d but found class:%d tag:%d",
+ seq->class,val_to_str(seq->class,ber_class_codes,"Unknown"),
+ seq->tag,class,tag);
}
seq++;
offset=eoffset;