diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-15 11:19:33 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-15 11:19:33 -0400 |
commit | df3d80f5a5c74168be42788364d13cf6c83c7b9c (patch) | |
tree | 892a964c2fd28d028f2fb7471e8543d3f4006a58 /drivers/scsi/constants.c | |
parent | 3d06f7a5f74a813cee817c4b30b5e6f0398da0be (diff) | |
parent | c8e91b0a8fc8493e3bf3efcb3c8f866e9453cf1c (diff) |
Merge master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6
* master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6: (207 commits)
[SCSI] gdth: fix CONFIG_ISA build failure
[SCSI] esp_scsi: remove __dev{init,exit}
[SCSI] gdth: !use_sg cleanup and use of scsi accessors
[SCSI] gdth: Move members from SCp to gdth_cmndinfo, stage 2
[SCSI] gdth: Setup proper per-command private data
[SCSI] gdth: Remove gdth_ctr_tab[]
[SCSI] gdth: switch to modern scsi host registration
[SCSI] gdth: gdth_interrupt() gdth_get_status() & gdth_wait() fixes
[SCSI] gdth: clean up host private data
[SCSI] gdth: Remove virt hosts
[SCSI] gdth: Reorder scsi_host_template intitializers
[SCSI] gdth: kill gdth_{read,write}[bwl] wrappers
[SCSI] gdth: Remove 2.4.x support, in-kernel changelog
[SCSI] gdth: split out pci probing
[SCSI] gdth: split out eisa probing
[SCSI] gdth: split out isa probing
gdth: Make one abuse of scsi_cmnd less obvious
[SCSI] NCR5380: Use scsi_eh API for REQUEST_SENSE invocation
[SCSI] usb storage: use scsi_eh API in REQUEST_SENSE execution
[SCSI] scsi_error: Refactoring scsi_error to facilitate in synchronous REQUEST_SENSE
...
Diffstat (limited to 'drivers/scsi/constants.c')
-rw-r--r-- | drivers/scsi/constants.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/drivers/scsi/constants.c b/drivers/scsi/constants.c index 2a458d66b6ff..024553f9c247 100644 --- a/drivers/scsi/constants.c +++ b/drivers/scsi/constants.c | |||
@@ -1235,7 +1235,21 @@ scsi_print_sense_hdr(const char *name, struct scsi_sense_hdr *sshdr) | |||
1235 | } | 1235 | } |
1236 | EXPORT_SYMBOL(scsi_print_sense_hdr); | 1236 | EXPORT_SYMBOL(scsi_print_sense_hdr); |
1237 | 1237 | ||
1238 | /* | ||
1239 | * Print normalized SCSI sense header with device information and a prefix. | ||
1240 | */ | ||
1238 | void | 1241 | void |
1242 | scsi_cmd_print_sense_hdr(struct scsi_cmnd *scmd, const char *desc, | ||
1243 | struct scsi_sense_hdr *sshdr) | ||
1244 | { | ||
1245 | scmd_printk(KERN_INFO, scmd, "%s: ", desc); | ||
1246 | scsi_show_sense_hdr(sshdr); | ||
1247 | scmd_printk(KERN_INFO, scmd, "%s: ", desc); | ||
1248 | scsi_show_extd_sense(sshdr->asc, sshdr->ascq); | ||
1249 | } | ||
1250 | EXPORT_SYMBOL(scsi_cmd_print_sense_hdr); | ||
1251 | |||
1252 | static void | ||
1239 | scsi_decode_sense_buffer(const unsigned char *sense_buffer, int sense_len, | 1253 | scsi_decode_sense_buffer(const unsigned char *sense_buffer, int sense_len, |
1240 | struct scsi_sense_hdr *sshdr) | 1254 | struct scsi_sense_hdr *sshdr) |
1241 | { | 1255 | { |
@@ -1258,7 +1272,7 @@ scsi_decode_sense_buffer(const unsigned char *sense_buffer, int sense_len, | |||
1258 | } | 1272 | } |
1259 | } | 1273 | } |
1260 | 1274 | ||
1261 | void | 1275 | static void |
1262 | scsi_decode_sense_extras(const unsigned char *sense_buffer, int sense_len, | 1276 | scsi_decode_sense_extras(const unsigned char *sense_buffer, int sense_len, |
1263 | struct scsi_sense_hdr *sshdr) | 1277 | struct scsi_sense_hdr *sshdr) |
1264 | { | 1278 | { |