summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_lib.c
diff options
context:
space:
mode:
authorMartin K. Petersen2009-05-23 17:45:07 +0200
committerJames Bottomley2009-08-23 00:51:51 +0200
commit002b1eb2c03ccec36bf6e7b719cccedf57d83402 (patch)
tree40d0c3f158aecbd614cc174f2b016cdeccf8c42f /drivers/scsi/scsi_lib.c
parent[SCSI] scsi_dh: Reference count scsi_dh_attach (diff)
downloadkernel-qcow2-linux-002b1eb2c03ccec36bf6e7b719cccedf57d83402.tar.gz
kernel-qcow2-linux-002b1eb2c03ccec36bf6e7b719cccedf57d83402.tar.xz
kernel-qcow2-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);