diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2017-04-02 12:34:44 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2017-04-02 16:40:28 +0000 |
commit | 9d1f2efa51b529b7bbf453919bf6b35546545637 (patch) | |
tree | eec7ec93e81702fe8164cd923e284e5ffe9e9b35 /epan/dissectors/packet-iso14443.c | |
parent | 522532643f18e879da8706a2a0327d2feae84d2f (diff) |
Use col_append_sep_str() for fixed strings
Change from col_append_sep_fstr() to col_append_sep_str() when
appending strings without formatting.
Change-Id: I315aca9b815c204a5bc78f7326402c40d1325f0e
Reviewed-on: https://code.wireshark.org/review/20846
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-iso14443.c')
-rw-r--r-- | epan/dissectors/packet-iso14443.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-iso14443.c b/epan/dissectors/packet-iso14443.c index 739b11ede4..776850a628 100644 --- a/epan/dissectors/packet-iso14443.c +++ b/epan/dissectors/packet-iso14443.c @@ -927,7 +927,7 @@ dissect_iso14443_cmd_type_block(tvbuff_t *tvb, packet_info *pinfo, switch (block_type) { case I_BLOCK_TYPE: - col_append_sep_fstr(pinfo->cinfo, COL_INFO, NULL, + col_append_sep_str(pinfo->cinfo, COL_INFO, NULL, (pcb & 0x10) ? "Chaining" : "No chaining"); proto_tree_add_item(pcb_tree, hf_iso14443_i_blk_chaining, tvb, offset, 1, ENC_BIG_ENDIAN); @@ -943,8 +943,8 @@ dissect_iso14443_cmd_type_block(tvbuff_t *tvb, packet_info *pinfo, break; case R_BLOCK_TYPE: - col_append_sep_fstr(pinfo->cinfo, COL_INFO, NULL, - "%s", (pcb & 0x10) ? + col_append_sep_str(pinfo->cinfo, COL_INFO, NULL, + (pcb & 0x10) ? tfs_nak_ack.true_string : tfs_nak_ack.false_string); proto_tree_add_item(pcb_tree, hf_iso14443_nak, tvb, offset, 1, ENC_BIG_ENDIAN); @@ -960,7 +960,7 @@ dissect_iso14443_cmd_type_block(tvbuff_t *tvb, packet_info *pinfo, s_cmd = (pcb & 0x30) >> 4; proto_tree_add_item(pcb_tree, hf_iso14443_s_blk_cmd, tvb, offset, 1, ENC_BIG_ENDIAN); - col_append_sep_fstr(pinfo->cinfo, COL_INFO, NULL, "%s", + col_append_sep_str(pinfo->cinfo, COL_INFO, NULL, val_to_str(s_cmd, iso14443_s_block_cmd, "Unknown (0x%02x)")); proto_tree_add_item(pcb_tree, hf_iso14443_cid_following, |