diff options
author | Michael Mann <mmann78@netscape.net> | 2014-07-05 18:29:13 -0400 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2014-07-05 23:08:19 +0000 |
commit | 0335ae339d4004ea8ee9b087bac7e1803685accb (patch) | |
tree | 5404c6b0c626906b2192c53a4af6c511a711d287 /epan/dissectors/packet-q933.c | |
parent | 318205e6999314d4fb0e0272ca4db2d347501f98 (diff) |
convert to proto_tree_add_subtree[_format]
Change-Id: I66f0bffb987568c3d4c14a06bdc90465c877b27f
Reviewed-on: https://code.wireshark.org/review/2867
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-q933.c')
-rw-r--r-- | epan/dissectors/packet-q933.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/epan/dissectors/packet-q933.c b/epan/dissectors/packet-q933.c index f5e449c574..5c06aa8cea 100644 --- a/epan/dissectors/packet-q933.c +++ b/epan/dissectors/packet-q933.c @@ -1994,11 +1994,10 @@ dissect_q933(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) */ info_element_len = tvb_get_guint8(tvb, offset + 1); if (q933_tree != NULL) { - ti = proto_tree_add_text(q933_tree, tvb, offset, - 1+1+info_element_len, "%s", + ie_tree = proto_tree_add_subtree(q933_tree, tvb, offset, + 1+1+info_element_len, ett_q933_ie, NULL, val_to_str(info_element, q933_info_element_vals[codeset], "Unknown information element (0x%02X)")); - ie_tree = proto_item_add_subtree(ti, ett_q933_ie); proto_tree_add_text(ie_tree, tvb, offset, 1, "Information element: %s", val_to_str(info_element, q933_info_element_vals[codeset], |