aboutsummaryrefslogtreecommitdiffstats
path: root/include/scsi
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2014-10-24 08:27:01 -0400
committerChristoph Hellwig <hch@lst.de>2014-11-12 05:16:05 -0500
commitc11c004b1c052fae77d3d0d14462d1f3a4e88d06 (patch)
tree8d04177220b7da556c33f10d1193f19b304f292c /include/scsi
parentef61329db7b8b4326b1c4e603806b2754fd2a692 (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.h3
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 *);
17extern void __scsi_print_sense(const struct scsi_device *, const char *name, 17extern 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);
20extern void scsi_print_result(struct scsi_cmnd *); 20extern void scsi_print_result(struct scsi_cmnd *, const char *, int);
21extern const char *scsi_hostbyte_string(int); 21extern const char *scsi_hostbyte_string(int);
22extern const char *scsi_driverbyte_string(int); 22extern const char *scsi_driverbyte_string(int);
23extern const char *scsi_mlreturn_string(int);
23extern const char *scsi_sense_key_string(unsigned char); 24extern const char *scsi_sense_key_string(unsigned char);
24extern const char *scsi_extd_sense_format(unsigned char, unsigned char, 25extern const char *scsi_extd_sense_format(unsigned char, unsigned char,
25 const char **); 26 const char **);