aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen M. Cameron <scameron@beardog.cce.hp.com>2010-02-04 09:42:30 -0500
committerJames Bottomley <James.Bottomley@suse.de>2010-02-17 14:19:37 -0500
commit84ca0be2a2cd9730683310b831db9d2fa60b3b0b (patch)
tree88c8c320893c8c37890d5839eabc27aae71be816
parenta104c99f386191706a11d39be81b8f03cd4f2719 (diff)
[SCSI] hpsa: fix some debug printks to use dev_dbg instead
Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
-rw-r--r--drivers/scsi/hpsa.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/drivers/scsi/hpsa.h b/drivers/scsi/hpsa.h
index da8dd3e619cb..cdac95b0e65f 100644
--- a/drivers/scsi/hpsa.h
+++ b/drivers/scsi/hpsa.h
@@ -173,10 +173,7 @@ struct ctlr_info {
173static void SA5_submit_command(struct ctlr_info *h, 173static void SA5_submit_command(struct ctlr_info *h,
174 struct CommandList *c) 174 struct CommandList *c)
175{ 175{
176#ifdef HPSA_DEBUG 176 dev_dbg(&h->pdev->dev, "Sending %x\n", c->busaddr);
177 printk(KERN_WARNING "hpsa: Sending %x - down to controller\n",
178 c->busaddr);
179#endif /* HPSA_DEBUG */
180 writel(c->busaddr, h->vaddr + SA5_REQUEST_PORT_OFFSET); 177 writel(c->busaddr, h->vaddr + SA5_REQUEST_PORT_OFFSET);
181 h->commands_outstanding++; 178 h->commands_outstanding++;
182 if (h->commands_outstanding > h->max_outstanding) 179 if (h->commands_outstanding > h->max_outstanding)
@@ -225,10 +222,10 @@ static unsigned long SA5_completed(struct ctlr_info *h)
225 222
226#ifdef HPSA_DEBUG 223#ifdef HPSA_DEBUG
227 if (register_value != FIFO_EMPTY) 224 if (register_value != FIFO_EMPTY)
228 printk(KERN_INFO "hpsa: Read %lx back from board\n", 225 dev_dbg(&h->pdev->dev, "Read %lx back from board\n",
229 register_value); 226 register_value);
230 else 227 else
231 printk(KERN_INFO "hpsa: FIFO Empty read\n"); 228 dev_dbg(&h->pdev->dev, "hpsa: FIFO Empty read\n");
232#endif 229#endif
233 230
234 return register_value; 231 return register_value;
@@ -240,9 +237,7 @@ static unsigned long SA5_intr_pending(struct ctlr_info *h)
240{ 237{
241 unsigned long register_value = 238 unsigned long register_value =
242 readl(h->vaddr + SA5_INTR_STATUS); 239 readl(h->vaddr + SA5_INTR_STATUS);
243#ifdef HPSA_DEBUG 240 dev_dbg(&h->pdev->dev, "intr_pending %lx\n", register_value);
244 printk(KERN_INFO "hpsa: intr_pending %lx\n", register_value);
245#endif /* HPSA_DEBUG */
246 if (register_value & SA5_INTR_PENDING) 241 if (register_value & SA5_INTR_PENDING)
247 return 1; 242 return 1;
248 return 0 ; 243 return 0 ;