diff options
author | Martin K. Petersen <martin.petersen@oracle.com> | 2009-05-23 11:45:07 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2009-08-22 18:51:51 -0400 |
commit | 002b1eb2c03ccec36bf6e7b719cccedf57d83402 (patch) | |
tree | 40d0c3f158aecbd614cc174f2b016cdeccf8c42f /drivers/scsi/scsi_lib.c | |
parent | 6c10db72c94818573552fd71c89540da325efdfb (diff) |
[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.c | 1 |
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) | |||
896 | scsi_print_result(cmd); | 896 | scsi_print_result(cmd); |
897 | if (driver_byte(result) & DRIVER_SENSE) | 897 | if (driver_byte(result) & DRIVER_SENSE) |
898 | scsi_print_sense("", cmd); | 898 | scsi_print_sense("", cmd); |
899 | scsi_print_command(cmd); | ||
899 | } | 900 | } |
900 | blk_end_request_all(req, -EIO); | 901 | blk_end_request_all(req, -EIO); |
901 | scsi_next_command(cmd); | 902 | scsi_next_command(cmd); |