aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormartinm <martinm@f5534014-38df-0310-8fa8-9805f1628bb7>2012-08-21 21:36:59 +0000
committermartinm <martinm@f5534014-38df-0310-8fa8-9805f1628bb7>2012-08-21 21:36:59 +0000
commit0c738d96b053c0b247be87669f5d39af45fdaa2e (patch)
tree96a1fdaa9252242f3d5f05ad9ca3d82db2b1ef1c
parentccb6814b0968b9cf1e654a60020fb2b0a2eabae8 (diff)
Call proto_item_append_string() rather than proto_item_append_text()
when there are no specifiers. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@44609 f5534014-38df-0310-8fa8-9805f1628bb7
-rw-r--r--epan/dissectors/packet-mac-lte.c26
-rw-r--r--epan/dissectors/packet-rlc-lte.c6
2 files changed, 16 insertions, 16 deletions
diff --git a/epan/dissectors/packet-mac-lte.c b/epan/dissectors/packet-mac-lte.c
index 341485fe5e..e1d1303554 100644
--- a/epan/dissectors/packet-mac-lte.c
+++ b/epan/dissectors/packet-mac-lte.c
@@ -1369,7 +1369,7 @@ static void show_extra_phy_parameters(packet_info *pinfo, tvbuff_t *tvb, proto_t
PROTO_ITEM_SET_GENERATED(ti);
- proto_item_append_text(phy_ti, " (");
+ proto_item_append_string(phy_ti, " (");
write_pdu_label_and_info(phy_ti, NULL,
(global_mac_lte_layer_to_show == ShowPHYLayer) ? pinfo : NULL,
@@ -1382,7 +1382,7 @@ static void show_extra_phy_parameters(packet_info *pinfo, tvbuff_t *tvb, proto_t
p_mac_lte_info->detailed_phy_info.ul_info.resource_block_length,
p_mac_lte_info->detailed_phy_info.ul_info.resource_block_start);
- proto_item_append_text(phy_ti, ")");
+ proto_item_append_string(phy_ti, ")");
/* Don't want columns to be replaced now */
if (global_mac_lte_layer_to_show == ShowPHYLayer) {
@@ -1456,7 +1456,7 @@ static void show_extra_phy_parameters(packet_info *pinfo, tvbuff_t *tvb, proto_t
PROTO_ITEM_SET_GENERATED(ti);
- proto_item_append_text(phy_ti, " (");
+ proto_item_append_string(phy_ti, " (");
write_pdu_label_and_info(phy_ti, NULL,
(global_mac_lte_layer_to_show == ShowPHYLayer) ? pinfo : NULL,
@@ -1476,7 +1476,7 @@ static void show_extra_phy_parameters(packet_info *pinfo, tvbuff_t *tvb, proto_t
crc_status_vals, "Unknown"),
p_mac_lte_info->detailed_phy_info.dl_info.harq_id,
p_mac_lte_info->detailed_phy_info.dl_info.ndi);
- proto_item_append_text(phy_ti, ")");
+ proto_item_append_string(phy_ti, ")");
/* Don't want columns to be replaced now */
if (global_mac_lte_layer_to_show == ShowPHYLayer) {
@@ -1694,7 +1694,7 @@ static void dissect_rar(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, pro
val_to_str_const(backoff_indicator, rar_bi_vals, "Illegal-value "));
}
else {
- proto_item_append_text(rar_headers_ti, ")");
+ proto_item_append_string(rar_headers_ti, ")");
}
/* Set length for headers root */
@@ -2876,14 +2876,14 @@ static void dissect_ulsch_or_dlsch(tvbuff_t *tvb, packet_info *pinfo, proto_tree
switch (pdu_lengths[number_of_headers]) {
case -1:
- proto_item_append_text(pdu_subheader_ti, ", length is remainder)");
+ proto_item_append_string(pdu_subheader_ti, ", length is remainder)");
proto_item_append_text(pdu_header_ti, " (%s:remainder)",
val_to_str_const(lcids[number_of_headers],
(direction == DIRECTION_UPLINK) ? ulsch_lcid_vals : dlsch_lcid_vals,
"Unknown"));
break;
case 0:
- proto_item_append_text(pdu_subheader_ti, ")");
+ proto_item_append_string(pdu_subheader_ti, ")");
proto_item_append_text(pdu_header_ti, " (%s)",
val_to_str_const(lcids[number_of_headers],
(direction == DIRECTION_UPLINK) ? ulsch_lcid_vals : dlsch_lcid_vals,
@@ -3058,7 +3058,7 @@ static void dissect_ulsch_or_dlsch(tvbuff_t *tvb, packet_info *pinfo, proto_tree
/* Now show CR result in tree */
switch (crResult->status) {
case NoMsg3:
- proto_item_append_text(cr_ti, " (no corresponding Msg3 found!)");
+ proto_item_append_string(cr_ti, " (no corresponding Msg3 found!)");
break;
case Msg3Match:
@@ -3908,14 +3908,14 @@ static void dissect_mch(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, pro
switch (pdu_lengths[number_of_headers]) {
case -1:
- proto_item_append_text(pdu_subheader_ti, ", length is remainder)");
+ proto_item_append_string(pdu_subheader_ti, ", length is remainder)");
proto_item_append_text(pdu_header_ti, " (%s:remainder)",
val_to_str_const(lcids[number_of_headers],
mch_lcid_vals,
"Unknown"));
break;
case 0:
- proto_item_append_text(pdu_subheader_ti, ")");
+ proto_item_append_string(pdu_subheader_ti, ")");
proto_item_append_text(pdu_header_ti, " (%s)",
val_to_str_const(lcids[number_of_headers],
mch_lcid_vals,
@@ -4002,10 +4002,10 @@ static void dissect_mch(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, pro
ti = proto_tree_add_item(mch_sched_info_tree, hf_mac_lte_control_mch_scheduling_info_stop_mtch,
tvb, curr_offset, 2, ENC_BIG_ENDIAN);
if ((stop_mtch_val >= 2043) && (stop_mtch_val <= 2046)) {
- proto_item_append_text(ti, " (reserved)");
+ proto_item_append_string(ti, " (reserved)");
}
else if (stop_mtch_val == 2047) {
- proto_item_append_text(ti, " (MTCH is not scheduled)");
+ proto_item_append_string(ti, " (MTCH is not scheduled)");
}
curr_offset += 2;
}
@@ -4135,7 +4135,7 @@ void dissect_mac_lte(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
/* Create protocol tree. */
pdu_ti = proto_tree_add_item(tree, proto_mac_lte, tvb, offset, -1, ENC_NA);
- proto_item_append_text(pdu_ti, " ");
+ proto_item_append_string(pdu_ti, " ");
mac_lte_tree = proto_item_add_subtree(pdu_ti, ett_mac_lte);
diff --git a/epan/dissectors/packet-rlc-lte.c b/epan/dissectors/packet-rlc-lte.c
index 7cfc5836ed..ac98dcb3c0 100644
--- a/epan/dissectors/packet-rlc-lte.c
+++ b/epan/dissectors/packet-rlc-lte.c
@@ -931,7 +931,7 @@ static void addChannelSequenceInfo(sequence_analysis_report *p,
ti = proto_tree_add_boolean(seqnum_tree, hf_rlc_lte_sequence_analysis_ok,
tvb, 0, 0, TRUE);
PROTO_ITEM_SET_GENERATED(ti);
- proto_item_append_text(seqnum_ti, " - OK");
+ proto_item_append_string(seqnum_ti, " - OK");
/* Link to next SN in channel (if known) */
if (p->nextFrameNum != 0) {
@@ -1152,7 +1152,7 @@ static void addChannelSequenceInfo(sequence_analysis_report *p,
ti = proto_tree_add_boolean(seqnum_tree, hf_rlc_lte_sequence_analysis_ok,
tvb, 0, 0, TRUE);
PROTO_ITEM_SET_GENERATED(ti);
- proto_item_append_text(seqnum_ti, " - OK");
+ proto_item_append_string(seqnum_ti, " - OK");
/* Link to next SN in channel (if known) */
if (p->nextFrameNum != 0) {
@@ -2316,7 +2316,7 @@ static void dissect_rlc_lte_am(tvbuff_t *tvb, packet_info *pinfo,
write_pdu_label_and_info(top_ti, NULL, pinfo, (polling) ? " (P) " : " ");
if (polling) {
- proto_item_append_text(am_header_ti, " (P) ");
+ proto_item_append_string(am_header_ti, " (P) ");
}
/* Framing Info */