diff options
author | Martin K. Petersen <martin.petersen@oracle.com> | 2007-02-27 22:39:44 -0500 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2007-03-11 12:14:02 -0400 |
commit | 684b7fe976554d12e6266d7280c87a0f3feff02e (patch) | |
tree | 42037688e8867faf8e859096985e6e0c19b13474 /include/scsi/scsi_dbg.h | |
parent | 862794fa3fd4c8a44ee22582418736c93e0d3c3a (diff) |
[SCSI] constants.c: cleanup, verbose result printing
Clean up constants.c and make result printing more user friendly:
- Refactor the command and sense functions so that the actual
formatting can be called from the various helper functions with the
correct prefix.
- Replace scsi_print_hostbyte() and scsi_print_driverbyte() with
scsi_print_result() which is verbose when CONFIG_SCSI_CONSTANTS is
on.
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'include/scsi/scsi_dbg.h')
-rw-r--r-- | include/scsi/scsi_dbg.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/scsi/scsi_dbg.h b/include/scsi/scsi_dbg.h index 3bbbfbe8cbfc..5a43a4cd96c6 100644 --- a/include/scsi/scsi_dbg.h +++ b/include/scsi/scsi_dbg.h | |||
@@ -5,14 +5,16 @@ struct scsi_cmnd; | |||
5 | struct scsi_sense_hdr; | 5 | struct scsi_sense_hdr; |
6 | 6 | ||
7 | extern void scsi_print_command(struct scsi_cmnd *); | 7 | extern void scsi_print_command(struct scsi_cmnd *); |
8 | extern void scsi_print_sense_hdr(const char *, struct scsi_sense_hdr *); | ||
9 | extern void __scsi_print_command(unsigned char *); | 8 | extern void __scsi_print_command(unsigned char *); |
10 | extern void scsi_print_sense(const char *, struct scsi_cmnd *); | 9 | extern void scsi_show_extd_sense(unsigned char, unsigned char); |
10 | extern void scsi_show_sense_hdr(struct scsi_sense_hdr *); | ||
11 | extern void scsi_print_sense_hdr(const char *, struct scsi_sense_hdr *); | ||
12 | extern void scsi_print_sense(char *, struct scsi_cmnd *); | ||
11 | extern void __scsi_print_sense(const char *name, | 13 | extern void __scsi_print_sense(const char *name, |
12 | const unsigned char *sense_buffer, | 14 | const unsigned char *sense_buffer, |
13 | int sense_len); | 15 | int sense_len); |
14 | extern void scsi_print_driverbyte(int); | 16 | extern void scsi_show_result(int); |
15 | extern void scsi_print_hostbyte(int); | 17 | extern void scsi_print_result(struct scsi_cmnd *); |
16 | extern void scsi_print_status(unsigned char); | 18 | extern void scsi_print_status(unsigned char); |
17 | extern const char *scsi_sense_key_string(unsigned char); | 19 | extern const char *scsi_sense_key_string(unsigned char); |
18 | extern const char *scsi_extd_sense_format(unsigned char, unsigned char); | 20 | extern const char *scsi_extd_sense_format(unsigned char, unsigned char); |