Call proto_item_append_string() rather than proto_item_append_text()
when there are no specifiers. svn path=/trunk/; revision=44609
This commit is contained in:
parent
d2b7806d3f
commit
1470f4a6b7
|
@ -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);
|
||||
|
||||
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue