提交 84ca0be2 编写于 作者: S Stephen M. Cameron 提交者: James Bottomley

[SCSI] hpsa: fix some debug printks to use dev_dbg instead

Signed-off-by: NStephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: NJames Bottomley <James.Bottomley@suse.de>
上级 a104c99f
...@@ -173,10 +173,7 @@ struct ctlr_info { ...@@ -173,10 +173,7 @@ struct ctlr_info {
static void SA5_submit_command(struct ctlr_info *h, static void SA5_submit_command(struct ctlr_info *h,
struct CommandList *c) struct CommandList *c)
{ {
#ifdef HPSA_DEBUG dev_dbg(&h->pdev->dev, "Sending %x\n", c->busaddr);
printk(KERN_WARNING "hpsa: Sending %x - down to controller\n",
c->busaddr);
#endif /* HPSA_DEBUG */
writel(c->busaddr, h->vaddr + SA5_REQUEST_PORT_OFFSET); writel(c->busaddr, h->vaddr + SA5_REQUEST_PORT_OFFSET);
h->commands_outstanding++; h->commands_outstanding++;
if (h->commands_outstanding > h->max_outstanding) if (h->commands_outstanding > h->max_outstanding)
...@@ -225,10 +222,10 @@ static unsigned long SA5_completed(struct ctlr_info *h) ...@@ -225,10 +222,10 @@ static unsigned long SA5_completed(struct ctlr_info *h)
#ifdef HPSA_DEBUG #ifdef HPSA_DEBUG
if (register_value != FIFO_EMPTY) if (register_value != FIFO_EMPTY)
printk(KERN_INFO "hpsa: Read %lx back from board\n", dev_dbg(&h->pdev->dev, "Read %lx back from board\n",
register_value); register_value);
else else
printk(KERN_INFO "hpsa: FIFO Empty read\n"); dev_dbg(&h->pdev->dev, "hpsa: FIFO Empty read\n");
#endif #endif
return register_value; return register_value;
...@@ -240,9 +237,7 @@ static unsigned long SA5_intr_pending(struct ctlr_info *h) ...@@ -240,9 +237,7 @@ static unsigned long SA5_intr_pending(struct ctlr_info *h)
{ {
unsigned long register_value = unsigned long register_value =
readl(h->vaddr + SA5_INTR_STATUS); readl(h->vaddr + SA5_INTR_STATUS);
#ifdef HPSA_DEBUG dev_dbg(&h->pdev->dev, "intr_pending %lx\n", register_value);
printk(KERN_INFO "hpsa: intr_pending %lx\n", register_value);
#endif /* HPSA_DEBUG */
if (register_value & SA5_INTR_PENDING) if (register_value & SA5_INTR_PENDING)
return 1; return 1;
return 0 ; return 0 ;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册