Ethereal-dev: [Ethereal-dev] obvious small bug in packet-scsi.c when parsing "MultiP" bit

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: David Wysochanski <davidw@xxxxxxxxxx>
Date: Mon, 31 Oct 2005 14:23:08 -0500
Need '0x' in front of '10'.  (Patch against 0.10.13 source.)


diff -u packet-scsi.c packet-scsi.c.new
--- packet-scsi.c       2005-10-10 09:23:05.000000000 -0400
+++ packet-scsi.c.new   2005-10-31 14:18:28.843444256 -0500
@@ -1868,7 +1868,7 @@
         proto_tree_add_text (tree, tvb, offset+6, 1,
                              "BQue: %u, SES: %u, MultiP: %u, Addr16: %u",
                              ((flags & 0x80) >> 7), (flags & 0x40) >> 6,
-                             (flags & 10) >> 4, (flags & 0x01));
+                             (flags & 0x10) >> 4, (flags & 0x01));
         flags = tvb_get_guint8 (tvb, offset+7);
         proto_tree_add_text (tree, tvb, offset+7, 1,
                              "RelAdr: %u, Linked: %u, CmdQue: %u",