[SCSI] move the mid-layer printk's over to shost/starget/sdev_printk
This should eliminate (at least in the mid layer) to make numeric assumptions about any of the enumeration variables. As a side effect, it will also make all the messages consistent and line us up nicely for the error logging strategy (if it ever shows itself again). Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:
committed by
James Bottomley
parent
9a41a62b74
commit
9ccfc756a7
@@ -609,6 +609,10 @@ struct Scsi_Host {
|
||||
#define class_to_shost(d) \
|
||||
container_of(d, struct Scsi_Host, shost_classdev)
|
||||
|
||||
#define shost_printk(prefix, shost, fmt, a...) \
|
||||
dev_printk(prefix, &(shost)->shost_gendev, fmt, ##a)
|
||||
|
||||
|
||||
int scsi_is_host_device(const struct device *);
|
||||
|
||||
static inline struct Scsi_Host *dev_to_shost(struct device *dev)
|
||||
|
Reference in New Issue
Block a user