diff options
author | Martin Kaiser <wireshark@kaiser.cx> | 2012-09-30 18:48:34 +0000 |
---|---|---|
committer | Martin Kaiser <wireshark@kaiser.cx> | 2012-09-30 18:48:34 +0000 |
commit | 11a17a9b27403785b839f782634c7c9058e7fb52 (patch) | |
tree | b9fcf860e3403e629565c2ae1dcd160b2ab81158 | |
parent | fc6fb385295c2f0e0d6d2bcabfee66a1ff9048d9 (diff) | |
download | wireshark-11a17a9b27403785b839f782634c7c9058e7fb52.tar.gz |
copy from the trunk
------------------------------------------------------------------------
r45224 | martink | 2012-09-30 19:58:45 +0200 (Sun, 30 Sep 2012) | 2 lines
dvb-ci: display cc item's name in the subtree title
svn path=/trunk-1.8/; revision=45228
-rw-r--r-- | epan/dissectors/packet-dvbci.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/epan/dissectors/packet-dvbci.c b/epan/dissectors/packet-dvbci.c index 5d33267e9c..226adf7c5f 100644 --- a/epan/dissectors/packet-dvbci.c +++ b/epan/dissectors/packet-dvbci.c @@ -1737,11 +1737,12 @@ dissect_cc_item(tvbuff_t *tvb, gint offset, offset_start = offset; + dat_id = tvb_get_guint8(tvb, offset); if (tree) { - ti = proto_tree_add_text(tree, tvb, offset_start, -1, "CC data item"); + ti = proto_tree_add_text(tree, tvb, offset_start, -1, "CC data item: %s", + val_to_str_const(dat_id, dvbci_cc_dat_id, "unknown")); cc_item_tree = proto_item_add_subtree(ti, ett_dvbci_cc_item); } - dat_id = tvb_get_guint8(tvb, offset); proto_tree_add_item(cc_item_tree, hf_dvbci_cc_dat_id, tvb, offset, 1, ENC_BIG_ENDIAN); offset++; |