aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/st.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/st.c')
-rw-r--r--drivers/scsi/st.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/scsi/st.c b/drivers/scsi/st.c
index 36ab023793ca..63c35ed3c88d 100644
--- a/drivers/scsi/st.c
+++ b/drivers/scsi/st.c
@@ -381,7 +381,8 @@ static int st_chk_result(struct scsi_tape *STp, struct st_request * SRpnt)
381 SRpnt->cmd[0], SRpnt->cmd[1], SRpnt->cmd[2], 381 SRpnt->cmd[0], SRpnt->cmd[1], SRpnt->cmd[2],
382 SRpnt->cmd[3], SRpnt->cmd[4], SRpnt->cmd[5]); 382 SRpnt->cmd[3], SRpnt->cmd[4], SRpnt->cmd[5]);
383 if (cmdstatp->have_sense) 383 if (cmdstatp->have_sense)
384 __scsi_print_sense(name, SRpnt->sense, SCSI_SENSE_BUFFERSIZE); 384 __scsi_print_sense(STp->device, name,
385 SRpnt->sense, SCSI_SENSE_BUFFERSIZE);
385 } ) /* end DEB */ 386 } ) /* end DEB */
386 if (!debugging) { /* Abnormal conditions for tape */ 387 if (!debugging) { /* Abnormal conditions for tape */
387 if (!cmdstatp->have_sense) 388 if (!cmdstatp->have_sense)
@@ -397,7 +398,8 @@ static int st_chk_result(struct scsi_tape *STp, struct st_request * SRpnt)
397 SRpnt->cmd[0] != MODE_SENSE && 398 SRpnt->cmd[0] != MODE_SENSE &&
398 SRpnt->cmd[0] != TEST_UNIT_READY) { 399 SRpnt->cmd[0] != TEST_UNIT_READY) {
399 400
400 __scsi_print_sense(name, SRpnt->sense, SCSI_SENSE_BUFFERSIZE); 401 __scsi_print_sense(STp->device, name,
402 SRpnt->sense, SCSI_SENSE_BUFFERSIZE);
401 } 403 }
402 } 404 }
403 405