aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_lib.c
diff options
context:
space:
mode:
authorJames Bottomley <James.Bottomley@steeleye.com>2007-09-23 10:08:46 -0400
committerJames Bottomley <jejb@mulgrave.localdomain>2007-10-12 14:51:56 -0400
commit311b581e1d87be87f78e6e17fc50f468f2dec561 (patch)
tree22ebbc79dd9f028875cf158531ed10b081020699 /drivers/scsi/scsi_lib.c
parent12a441622b753684cc73d1c6f225e9ac53e0bf77 (diff)
[SCSI] Fix device not ready printk
Because scsi_print_sense_hdr prefixes with KERN_INFO, the output from scsi_io_completion looks like: sd 0:0:0:0: [sdb] Device not ready: <6>: Sense Key : 0x2 [current] : ASC=0x4 ASCQ=0x3 By using scsi_show_sense_hdr, we can get the much more appealing output: sd 0:0:0:0: [sdb] Device not ready: Sense Key : 0x2 [current] sd 0:0:0:0: [sdb] Device not ready: ASC=0x4 ASCQ=0x3 Acked-by: Matthew Wilcox <willy@linux.intel.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/scsi_lib.c')
-rw-r--r--drivers/scsi/scsi_lib.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c
index 94d82cb96626..86fd3abe731a 100644
--- a/drivers/scsi/scsi_lib.c
+++ b/drivers/scsi/scsi_lib.c
@@ -944,11 +944,11 @@ void scsi_io_completion(struct scsi_cmnd *cmd, unsigned int good_bytes)
944 break; 944 break;
945 } 945 }
946 } 946 }
947 if (!(req->cmd_flags & REQ_QUIET)) { 947 if (!(req->cmd_flags & REQ_QUIET))
948 scmd_printk(KERN_INFO, cmd, 948 scsi_cmd_print_sense_hdr(cmd,
949 "Device not ready: "); 949 "Device not ready",
950 scsi_print_sense_hdr("", &sshdr); 950 &sshdr);
951 } 951
952 scsi_end_request(cmd, 0, this_count, 1); 952 scsi_end_request(cmd, 0, this_count, 1);
953 return; 953 return;
954 case VOLUME_OVERFLOW: 954 case VOLUME_OVERFLOW: