Skip to contentSkip to conversation

SCSI: Print failed commands

PATCH New Martin K. Petersen 1 participant 1 message May 23, 2009 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---

drivers/scsi/scsi_lib.c +1 -0
index 30f3275..79ea5be 100644
@@ -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);