OSDN Git Service

scsi: csiostor: drop serial_number usage
authorHannes Reinecke <hare@suse.com>
Tue, 26 Feb 2019 14:56:41 +0000 (15:56 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 27 Feb 2019 14:19:24 +0000 (09:19 -0500)
Use request tag instead of the serial number when printing out logging
messages.

Signed-off-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/csiostor/csio_scsi.c

index bc5547a..462560b 100644 (file)
@@ -1984,15 +1984,15 @@ inval_scmnd:
        /* 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;
        }
 }