[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
@@ -139,11 +139,11 @@ int scsi_host_set_state(struct Scsi_Host *shost, enum scsi_host_state state)
|
||||
|
||||
illegal:
|
||||
SCSI_LOG_ERROR_RECOVERY(1,
|
||||
dev_printk(KERN_ERR, &shost->shost_gendev,
|
||||
"Illegal host state transition"
|
||||
"%s->%s\n",
|
||||
scsi_host_state_name(oldstate),
|
||||
scsi_host_state_name(state)));
|
||||
shost_printk(KERN_ERR, shost,
|
||||
"Illegal host state transition"
|
||||
"%s->%s\n",
|
||||
scsi_host_state_name(oldstate),
|
||||
scsi_host_state_name(state)));
|
||||
return -EINVAL;
|
||||
}
|
||||
EXPORT_SYMBOL(scsi_host_set_state);
|
||||
|
Reference in New Issue
Block a user