Blob Blame History Raw
From: Bart Van Assche <bvanassche@acm.org>
Date: Fri, 18 Feb 2022 11:50:49 -0800
Subject: scsi: fnic: Fix a tracing statement
Git-commit: 3032ed77a28913203a4fe0ab8f05752331af79b3
Patch-mainline: v5.18-rc1
References: git-fixes

Report both the command flags and command state instead of only the
command state.

[lduncan: hand applied then refreshed.]

Link: https://lore.kernel.org/r/20220218195117.25689-22-bvanassche@acm.org
Fixes: 4d7007b49d52 ("[SCSI] fnic: Fnic Trace Utility")
Cc: Hiral Patel <hiralpat@cisco.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Acked-by: Lee Duncan <lduncan@suse.com>
---
 drivers/scsi/fnic/fnic_scsi.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/scsi/fnic/fnic_scsi.c
+++ b/drivers/scsi/fnic/fnic_scsi.c
@@ -611,7 +611,7 @@ out:
 	FNIC_TRACE(fnic_queuecommand, sc->device->host->host_no,
 		  sc->request->tag, sc, io_req,
 		  sg_count, cmd_trace,
-		  (((u64)CMD_FLAGS(sc) >> 32) | CMD_STATE(sc)));
+		  (((u64)CMD_FLAGS(sc) << 32) | CMD_STATE(sc)));
 
 	/* if only we issued IO, will we have the io lock */
 	if (io_lock_acquired)