diff mbox series

[3/4] csiostor: drop serial_number usage

Message ID 20190226145642.95361-4-hare@suse.de (mailing list archive)
State Accepted
Headers show
Series None | expand

Commit Message

Hannes Reinecke Feb. 26, 2019, 2:56 p.m. UTC
From: Hannes Reinecke <hare@suse.com>

Use request tag instead of the serial number when printing out
logging messages.

Signed-off-by: Hannes Reinecke <hare@suse.com>
---
 drivers/scsi/csiostor/csio_scsi.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Comments

Bart Van Assche Feb. 26, 2019, 3:53 p.m. UTC | #1
On Tue, 2019-02-26 at 15:56 +0100, Hannes Reinecke wrote:
> Use request tag instead of the serial number when printing out
> logging messages.

Reviewed-by: Bart Van Assche <bvanassche@acm.org>
diff mbox series

Patch

diff --git a/drivers/scsi/csiostor/csio_scsi.c b/drivers/scsi/csiostor/csio_scsi.c
index bc5547a62c00..462560b2855e 100644
--- a/drivers/scsi/csiostor/csio_scsi.c
+++ b/drivers/scsi/csiostor/csio_scsi.c
@@ -1984,15 +1984,15 @@  csio_eh_abort_handler(struct scsi_cmnd *cmnd)
 	/* FW successfully aborted the request */
 	if (host_byte(cmnd->result) == DID_REQUEUE) {
 		csio_info(hw,
-			"Aborted SCSI command to (%d:%llu) serial#:0x%lx\n",
+			"Aborted SCSI command to (%d:%llu) tag %u\n",
 			cmnd->device->id, cmnd->device->lun,
-			cmnd->serial_number);
+			cmnd->request->tag);
 		return SUCCESS;
 	} else {
 		csio_info(hw,
-			"Failed to abort SCSI command, (%d:%llu) serial#:0x%lx\n",
+			"Failed to abort SCSI command, (%d:%llu) tag %u\n",
 			cmnd->device->id, cmnd->device->lun,
-			cmnd->serial_number);
+			cmnd->request->tag);
 		return FAILED;
 	}
 }