svn commit: r345815 - in head: lib/libcam sys/cam sys/cam/nvme
Alexey Dokuchaev
danfe at freebsd.org
Wed May 22 15:10:29 UTC 2019
On Tue, Apr 02, 2019 at 07:37:53PM +0000, Alexander Motin wrote:
> New Revision: 345815
> URL: https://svnweb.freebsd.org/changeset/base/345815
>
> Log:
> Make cam_error_print() decode NVMe commands.
>
> Modified: head/sys/cam/nvme/nvme_xpt.c
> ...
> @@ -769,11 +769,13 @@ nvme_proto_debug_out(union ccb *ccb)
> {
> char cdb_str[(sizeof(struct nvme_command) * 3) + 1];
>
> - if (ccb->ccb_h.func_code != XPT_NVME_IO)
> + if (ccb->ccb_h.func_code != XPT_NVME_IO ||
> + ccb->ccb_h.func_code != XPT_NVME_ADMIN)
> return;
PVS Studio complains that "Expression is always true. Probably the '&&'
operator should be used here". Can you take a look?
./danfe
More information about the svn-src-all
mailing list