aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/constants.c
diff options
context:
space:
mode:
authorJames Bottomley <James.Bottomley@steeleye.com>2005-10-02 12:45:08 -0400
committerJames Bottomley <jejb@mulgrave.(none)>2005-10-28 15:23:02 -0400
commit9ccfc756a70d454dfa82f48897e2883560c01a0e (patch)
tree9a6d3b10b1ec0e5fe7a63252a21598a03e93ad4e /drivers/scsi/constants.c
parent9a41a62b74388827998253d62c58707e63cc5874 (diff)
[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>
Diffstat (limited to 'drivers/scsi/constants.c')
-rw-r--r--drivers/scsi/constants.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/scsi/constants.c b/drivers/scsi/constants.c
index f6be2c1c3942..09bc81557b6e 100644
--- a/drivers/scsi/constants.c
+++ b/drivers/scsi/constants.c
@@ -1389,10 +1389,7 @@ EXPORT_SYMBOL(scsi_print_msg);
1389void scsi_print_command(struct scsi_cmnd *cmd) 1389void scsi_print_command(struct scsi_cmnd *cmd)
1390{ 1390{
1391 /* Assume appended output (i.e. not at start of line) */ 1391 /* Assume appended output (i.e. not at start of line) */
1392 printk("scsi%d : destination target %d, lun %d\n", 1392 sdev_printk("", cmd->device, "\n");
1393 cmd->device->host->host_no,
1394 cmd->device->id,
1395 cmd->device->lun);
1396 printk(KERN_INFO " command: "); 1393 printk(KERN_INFO " command: ");
1397 scsi_print_cdb(cmd->cmnd, cmd->cmd_len, 0); 1394 scsi_print_cdb(cmd->cmnd, cmd->cmd_len, 0);
1398} 1395}