[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
@@ -1389,10 +1389,7 @@ EXPORT_SYMBOL(scsi_print_msg);
|
||||
void scsi_print_command(struct scsi_cmnd *cmd)
|
||||
{
|
||||
/* Assume appended output (i.e. not at start of line) */
|
||||
printk("scsi%d : destination target %d, lun %d\n",
|
||||
cmd->device->host->host_no,
|
||||
cmd->device->id,
|
||||
cmd->device->lun);
|
||||
sdev_printk("", cmd->device, "\n");
|
||||
printk(KERN_INFO " command: ");
|
||||
scsi_print_cdb(cmd->cmnd, cmd->cmd_len, 0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user