diff options
author | Guy Harris <guy@alum.mit.edu> | 2006-02-16 11:43:38 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2006-02-16 11:43:38 +0000 |
commit | b13f6dcbd34e11cb7dff5f03be9c2bdde200b22a (patch) | |
tree | c5f9bd1a6b9cfb26df3de77c2cb27d661c19e9ab /epan/dissectors/packet-bssgp.c | |
parent | 1b096ab156506856495860ef6b356e6992a3ba8c (diff) | |
download | wireshark-b13f6dcbd34e11cb7dff5f03be9c2bdde200b22a.tar.gz wireshark-b13f6dcbd34e11cb7dff5f03be9c2bdde200b22a.tar.bz2 wireshark-b13f6dcbd34e11cb7dff5f03be9c2bdde200b22a.zip |
Use the new "proto_tree_add_*_format_value" routines.
svn path=/trunk/; revision=17316
Diffstat (limited to 'epan/dissectors/packet-bssgp.c')
-rw-r--r-- | epan/dissectors/packet-bssgp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/dissectors/packet-bssgp.c b/epan/dissectors/packet-bssgp.c index 071aa0c976..155e2f1d14 100644 --- a/epan/dissectors/packet-bssgp.c +++ b/epan/dissectors/packet-bssgp.c @@ -5701,11 +5701,11 @@ dissect_bssgp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) if (tree) { ti = proto_tree_add_item(tree, proto_bssgp, tvb, 0, -1, FALSE); bssgp_tree = proto_item_add_subtree(ti, ett_bssgp); - proto_tree_add_uint_format(bssgp_tree, hf_bssgp_pdu_type, tvb, 0, 1, - pdutype, - "PDU Type: %s (%#02x)", - val_to_str(pdutype, tab_bssgp_pdu_types, - "Unknown"), pdutype); + proto_tree_add_uint_format_value(bssgp_tree, hf_bssgp_pdu_type, tvb, 0, 1, + pdutype, + "%s (%#02x)", + val_to_str(pdutype, tab_bssgp_pdu_types, + "Unknown"), pdutype); bi.bssgp_tree = bssgp_tree; } |