diff options
author | Hannes Reinecke <hare@suse.de> | 2014-10-24 08:27:01 -0400 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2014-11-12 05:16:05 -0500 |
commit | c11c004b1c052fae77d3d0d14462d1f3a4e88d06 (patch) | |
tree | 8d04177220b7da556c33f10d1193f19b304f292c /include/scsi | |
parent | ef61329db7b8b4326b1c4e603806b2754fd2a692 (diff) |
scsi: simplify scsi_log_(send|completion)
Simplify scsi_log_(send|completion) by externalizing
scsi_mlreturn_string() and always print the command address.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Robert Elliott <elliott@hp.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'include/scsi')
-rw-r--r-- | include/scsi/scsi_dbg.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/scsi/scsi_dbg.h b/include/scsi/scsi_dbg.h index f41a86bc1a8f..7982795df595 100644 --- a/include/scsi/scsi_dbg.h +++ b/include/scsi/scsi_dbg.h | |||
@@ -17,9 +17,10 @@ extern void scsi_print_sense(const struct scsi_cmnd *); | |||
17 | extern void __scsi_print_sense(const struct scsi_device *, const char *name, | 17 | extern void __scsi_print_sense(const struct scsi_device *, const char *name, |
18 | const unsigned char *sense_buffer, | 18 | const unsigned char *sense_buffer, |
19 | int sense_len); | 19 | int sense_len); |
20 | extern void scsi_print_result(struct scsi_cmnd *); | 20 | extern void scsi_print_result(struct scsi_cmnd *, const char *, int); |
21 | extern const char *scsi_hostbyte_string(int); | 21 | extern const char *scsi_hostbyte_string(int); |
22 | extern const char *scsi_driverbyte_string(int); | 22 | extern const char *scsi_driverbyte_string(int); |
23 | extern const char *scsi_mlreturn_string(int); | ||
23 | extern const char *scsi_sense_key_string(unsigned char); | 24 | extern const char *scsi_sense_key_string(unsigned char); |
24 | extern const char *scsi_extd_sense_format(unsigned char, unsigned char, | 25 | extern const char *scsi_extd_sense_format(unsigned char, unsigned char, |
25 | const char **); | 26 | const char **); |