aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorChris Maynard <Christopher.Maynard@GTECH.COM>2013-01-22 01:56:07 +0000
committerChris Maynard <Christopher.Maynard@GTECH.COM>2013-01-22 01:56:07 +0000
commit0e34036761af456308c016d6c2c4f1e265d7a014 (patch)
tree0b61ebf59674b76262c23ce87b30e9e3015efbe1 /epan
parent86dd0abcd35a56f0e460291818ad6da0511dd45d (diff)
Fix bug found by VS Code Analysis: warning C6336: Arithmetic operator has precedence over question operator, use parentheses to clarify intent
svn path=/trunk/; revision=47202
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-scsi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/dissectors/packet-scsi.c b/epan/dissectors/packet-scsi.c
index a9ba50a33b..ddc397258d 100644
--- a/epan/dissectors/packet-scsi.c
+++ b/epan/dissectors/packet-scsi.c
@@ -3562,7 +3562,8 @@ dissect_scsi_modepage(tvbuff_t *tvb, packet_info *pinfo,
dissect_modepage = dissect_scsi_spc_modepage;
}
- ti = proto_tree_add_text(scsi_tree, tvb, offset, plen + spf ? 4 : 2, "%s Mode Page",
+ ti = proto_tree_add_text(scsi_tree, tvb, offset, plen + (spf ? 4 : 2),
+ "%s Mode Page",
val_to_str(pcode & SCSI_MS_PCODE_BITS,
modepage_val, "Unknown (0x%08x)"));
tree = proto_item_add_subtree(ti, ett_scsi_page);