scsi: use sdev as argument for sense code printing
We should be using the standard dev_printk() variants for sense code printing. [hch: remove __scsi_print_sense call in xen-scsiback, Acked by Juergen] [hch: folded bracing fix from Dan Carpenter] Signed-off-by: Hannes Reinecke <hare@suse.de> Reviewed-by: Robert Elliott <elliott@hp.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:

committed by
Christoph Hellwig

parent
22e0d99415
commit
d811b848eb
@@ -381,7 +381,8 @@ static int st_chk_result(struct scsi_tape *STp, struct st_request * SRpnt)
|
||||
SRpnt->cmd[0], SRpnt->cmd[1], SRpnt->cmd[2],
|
||||
SRpnt->cmd[3], SRpnt->cmd[4], SRpnt->cmd[5]);
|
||||
if (cmdstatp->have_sense)
|
||||
__scsi_print_sense(name, SRpnt->sense, SCSI_SENSE_BUFFERSIZE);
|
||||
__scsi_print_sense(STp->device, name,
|
||||
SRpnt->sense, SCSI_SENSE_BUFFERSIZE);
|
||||
} ) /* end DEB */
|
||||
if (!debugging) { /* Abnormal conditions for tape */
|
||||
if (!cmdstatp->have_sense)
|
||||
@@ -397,7 +398,8 @@ static int st_chk_result(struct scsi_tape *STp, struct st_request * SRpnt)
|
||||
SRpnt->cmd[0] != MODE_SENSE &&
|
||||
SRpnt->cmd[0] != TEST_UNIT_READY) {
|
||||
|
||||
__scsi_print_sense(name, SRpnt->sense, SCSI_SENSE_BUFFERSIZE);
|
||||
__scsi_print_sense(STp->device, name,
|
||||
SRpnt->sense, SCSI_SENSE_BUFFERSIZE);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user