aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/mms
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2013-07-03 02:59:31 +0000
committerMichael Mann <mmann78@netscape.net>2013-07-03 02:59:31 +0000
commit98492c561948b8d08c8c39e61a6f2c8b31cb344f (patch)
treec87f8e4302c3e9172a21a320e9e9e56baa301b21 /asn1/mms
parentfdead4df94f6cd253c6768369805732f35a7d9e2 (diff)
expert_add_info + proto_tree_add_text = proto_tree_add_expert, where applicable
svn path=/trunk/; revision=50337
Diffstat (limited to 'asn1/mms')
-rw-r--r--asn1/mms/mms.cnf14
1 files changed, 4 insertions, 10 deletions
diff --git a/asn1/mms/mms.cnf b/asn1/mms/mms.cnf
index 610dac564b..d99fd50f58 100644
--- a/asn1/mms/mms.cnf
+++ b/asn1/mms/mms.cnf
@@ -49,7 +49,6 @@ UtcTime TYPE = FT_STRING DISPLAY = BASE_NONE
#.FN_BODY TimeOfDay
guint32 len;
- proto_item *cause;
guint32 milliseconds;
guint16 days;
gchar * ptime;
@@ -89,10 +88,8 @@ UtcTime TYPE = FT_STRING DISPLAY = BASE_NONE
return offset;
}
- cause = proto_tree_add_text(tree, tvb, offset, len,
- "BER Error: malformed TimeOfDay encoding, "
- "length must be 4 or 6 bytes");
- expert_add_info(actx->pinfo, cause, &ei_mms_mal_timeofday_encoding);
+ proto_tree_add_expert_format(tree, actx->pinfo, &ei_mms_mal_timeofday_encoding,
+ tvb, offset, len, "BER Error: malformed TimeOfDay encoding, length must be 4 or 6 bytes");
if(hf_index >= 0)
{
proto_tree_add_string(tree, hf_index, tvb, offset, len, "????");
@@ -103,7 +100,6 @@ UtcTime TYPE = FT_STRING DISPLAY = BASE_NONE
#.FN_BODY UtcTime
guint32 len;
- proto_item *cause;
guint32 seconds;
guint32 fraction;
guint32 nanoseconds;
@@ -114,10 +110,8 @@ UtcTime TYPE = FT_STRING DISPLAY = BASE_NONE
if(len != 8)
{
- cause = proto_tree_add_text(tree, tvb, offset, len,
- "BER Error: malformed IEC61850 UTCTime encoding, "
- "length must be 8 bytes");
- expert_add_info(actx->pinfo, cause, &ei_mms_mal_utctime_encoding);
+ proto_tree_add_expert_format(tree, actx->pinfo, &ei_mms_mal_utctime_encoding,
+ tvb, offset, len, "BER Error: malformed IEC61850 UTCTime encoding, length must be 8 bytes");
if(hf_index >= 0)
{
proto_tree_add_string(tree, hf_index, tvb, offset, len, "????");