diff options
Diffstat (limited to 'drivers/scsi/scsi_lib.c')
-rw-r--r-- | drivers/scsi/scsi_lib.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index 19ac888001e6..e40c8b66da40 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c | |||
@@ -951,16 +951,14 @@ void scsi_io_completion(struct scsi_cmnd *cmd, unsigned int good_bytes, | |||
951 | return; | 951 | return; |
952 | } | 952 | } |
953 | if (!(req->flags & REQ_QUIET)) | 953 | if (!(req->flags & REQ_QUIET)) |
954 | sdev_printk(KERN_INFO, | 954 | scmd_printk(KERN_INFO, cmd, |
955 | cmd->device, | 955 | "Device not ready.\n"); |
956 | "Device not ready.\n"); | ||
957 | scsi_end_request(cmd, 0, this_count, 1); | 956 | scsi_end_request(cmd, 0, this_count, 1); |
958 | return; | 957 | return; |
959 | case VOLUME_OVERFLOW: | 958 | case VOLUME_OVERFLOW: |
960 | if (!(req->flags & REQ_QUIET)) { | 959 | if (!(req->flags & REQ_QUIET)) { |
961 | sdev_printk(KERN_INFO, | 960 | scmd_printk(KERN_INFO, cmd, |
962 | cmd->device, | 961 | "Volume overflow, CDB: "); |
963 | "Volume overflow, CDB: "); | ||
964 | __scsi_print_command(cmd->data_cmnd); | 962 | __scsi_print_command(cmd->data_cmnd); |
965 | scsi_print_sense("", cmd); | 963 | scsi_print_sense("", cmd); |
966 | } | 964 | } |
@@ -981,9 +979,8 @@ void scsi_io_completion(struct scsi_cmnd *cmd, unsigned int good_bytes, | |||
981 | } | 979 | } |
982 | if (result) { | 980 | if (result) { |
983 | if (!(req->flags & REQ_QUIET)) { | 981 | if (!(req->flags & REQ_QUIET)) { |
984 | sdev_printk(KERN_INFO, cmd->device, | 982 | scmd_printk(KERN_INFO, cmd, |
985 | "SCSI error: return code = 0x%x\n", | 983 | "SCSI error: return code = 0x%x\n", result); |
986 | result); | ||
987 | 984 | ||
988 | if (driver_byte(result) & DRIVER_SENSE) | 985 | if (driver_byte(result) & DRIVER_SENSE) |
989 | scsi_print_sense("", cmd); | 986 | scsi_print_sense("", cmd); |