summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_lib.c
diff options
context:
space:
mode:
authorMartin K. Petersen <martin.petersen@oracle.com>2009-05-23 11:45:07 -0400
committerJames Bottomley <James.Bottomley@suse.de>2009-08-22 17:51:51 -0500
commit002b1eb2c03ccec36bf6e7b719cccedf57d83402 (patch)
tree40d0c3f158aecbd614cc174f2b016cdeccf8c42f /drivers/scsi/scsi_lib.c
parent6c10db72c94818573552fd71c89540da325efdfb (diff)
downloadblackbird-op-linux-002b1eb2c03ccec36bf6e7b719cccedf57d83402.tar.gz
blackbird-op-linux-002b1eb2c03ccec36bf6e7b719cccedf57d83402.zip
[SCSI] Print failed commands
When a request fails we print the sense data but not the actual command that failed. Add a printout of the operation + CDB for failed commands. Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/scsi_lib.c')
-rw-r--r--drivers/scsi/scsi_lib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c
index f3c40898fc7d..662024d86949 100644
--- a/drivers/scsi/scsi_lib.c
+++ b/drivers/scsi/scsi_lib.c
@@ -896,6 +896,7 @@ void scsi_io_completion(struct scsi_cmnd *cmd, unsigned int good_bytes)
scsi_print_result(cmd);
if (driver_byte(result) & DRIVER_SENSE)
scsi_print_sense("", cmd);
+ scsi_print_command(cmd);
}
blk_end_request_all(req, -EIO);
scsi_next_command(cmd);
OpenPOWER on IntegriCloud