diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2017-04-02 20:08:15 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2017-04-03 05:32:17 +0000 |
commit | d99112d39310c38798aae92a6db811d363ffc385 (patch) | |
tree | 8cea44e94736f7654986d4036a89a0d95f19c335 /epan/dissectors/packet-opensafety.c | |
parent | a3444529e5c1d4a3439e33cb449c70b399bf9205 (diff) |
Use col_append_str() for fixed strings
Change from col_append_fstr() to col_append_str() when
appending strings without formatting.
Change-Id: I8975704c246f2b9a1301ed5f96273aa9d61c6f44
Reviewed-on: https://code.wireshark.org/review/20857
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-opensafety.c')
-rw-r--r-- | epan/dissectors/packet-opensafety.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-opensafety.c b/epan/dissectors/packet-opensafety.c index 65b410a38c..21d43d7eea 100644 --- a/epan/dissectors/packet-opensafety.c +++ b/epan/dissectors/packet-opensafety.c @@ -1217,7 +1217,7 @@ dissect_opensafety_ssdo_message(tvbuff_t *message_tvb, packet_info *pinfo, proto col_append_fstr(pinfo->cinfo, COL_INFO, " - %s", val_to_str_ext_const(((guint32) (ssdoIndex << 16) + ssdoSubIndex), &opensafety_sod_idx_names_ext, "Unknown")); } - col_append_fstr(pinfo->cinfo, COL_INFO, "%s", "]" ); + col_append_str(pinfo->cinfo, COL_INFO, "]"); payloadOffset += 3; } @@ -1483,7 +1483,7 @@ dissect_opensafety_snmt_message(tvbuff_t *message_tvb, packet_info *pinfo, proto { proto_tree_add_uint_format_value(snmt_tree, hf_oss_snmt_service_id, message_tvb, OSS_FRAME_POS_DATA + packet->frame.subframe1, 1, packet->payload.snmt->ext_msg_id, "Additional parameter missing [Response via SN Acknowledge] (0x%02X)", packet->payload.snmt->ext_msg_id); - col_append_fstr(pinfo->cinfo, COL_INFO, ", Additional parameter missing"); + col_append_str(pinfo->cinfo, COL_INFO, ", Additional parameter missing"); } errcode = tvb_get_guint8(message_tvb, OSS_FRAME_POS_DATA + packet->frame.subframe1 + 2); |