aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-fcswils.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-fcswils.c')
-rw-r--r--epan/dissectors/packet-fcswils.c22
1 files changed, 10 insertions, 12 deletions
diff --git a/epan/dissectors/packet-fcswils.c b/epan/dissectors/packet-fcswils.c
index 0547c59622..d9fbc25aa0 100644
--- a/epan/dissectors/packet-fcswils.c
+++ b/epan/dissectors/packet-fcswils.c
@@ -1852,19 +1852,17 @@ dissect_fcswils(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
}
}
- if (check_col(pinfo->cinfo, COL_INFO)) {
- if (isreq == FC_SWILS_REQ) {
- col_add_str(pinfo->cinfo, COL_INFO,
+ if (isreq == FC_SWILS_REQ) {
+ col_add_str(pinfo->cinfo, COL_INFO,
+ val_to_str(opcode, fc_swils_opcode_key_val, "0x%x"));
+ }
+ else if (opcode == FC_SWILS_SWRJT) {
+ col_add_fstr(pinfo->cinfo, COL_INFO, "SW_RJT (%s)",
+ val_to_str(failed_opcode, fc_swils_opcode_key_val, "0x%x"));
+ }
+ else {
+ col_add_fstr(pinfo->cinfo, COL_INFO, "SW_ACC (%s)",
val_to_str(opcode, fc_swils_opcode_key_val, "0x%x"));
- }
- else if (opcode == FC_SWILS_SWRJT) {
- col_add_fstr(pinfo->cinfo, COL_INFO, "SW_RJT (%s)",
- val_to_str(failed_opcode, fc_swils_opcode_key_val, "0x%x"));
- }
- else {
- col_add_fstr(pinfo->cinfo, COL_INFO, "SW_ACC (%s)",
- val_to_str(opcode, fc_swils_opcode_key_val, "0x%x"));
- }
}
if (tree) {