Staging: comedi: fix printk issue in cb_pcimdas.c
authorRavishankar karkala Mallikarjunayya <ravishankar.km@greenturtles.in>
Sat, 19 Nov 2011 04:36:45 +0000 (10:06 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 27 Nov 2011 02:48:02 +0000 (18:48 -0800)
This is a patch to the cb_pcimdas.c file that fixes up a printk
warning found by the checkpatch.pl tool.

converted printks to dev_version.
Removed ifdef CBPCIMDAS_DEBUG.

Signed-off-by: Ravishankar Karkala Mallikarjunayya <ravishankar.km@greenturtles.in>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/drivers/cb_pcimdas.c

index 321af6d4a75b3a5570b73787a8a1a6602aed9078..5d25e788c8a67331db8359bd7e6f37676c024ec0 100644 (file)
@@ -274,13 +274,11 @@ found:
        devpriv->BADR3 = pci_resource_start(devpriv->pci_dev, 3);
        devpriv->BADR4 = pci_resource_start(devpriv->pci_dev, 4);
 
-#ifdef CBPCIMDAS_DEBUG
-       printk("devpriv->BADR0 = 0x%lx\n", devpriv->BADR0);
-       printk("devpriv->BADR1 = 0x%lx\n", devpriv->BADR1);
-       printk("devpriv->BADR2 = 0x%lx\n", devpriv->BADR2);
-       printk("devpriv->BADR3 = 0x%lx\n", devpriv->BADR3);
-       printk("devpriv->BADR4 = 0x%lx\n", devpriv->BADR4);
-#endif
+       dev_dbg(dev->hw_dev, "devpriv->BADR0 = 0x%lx\n", devpriv->BADR0);
+       dev_dbg(dev->hw_dev, "devpriv->BADR1 = 0x%lx\n", devpriv->BADR1);
+       dev_dbg(dev->hw_dev, "devpriv->BADR2 = 0x%lx\n", devpriv->BADR2);
+       dev_dbg(dev->hw_dev, "devpriv->BADR3 = 0x%lx\n", devpriv->BADR3);
+       dev_dbg(dev->hw_dev, "devpriv->BADR4 = 0x%lx\n", devpriv->BADR4);
 
 /* Dont support IRQ yet */
 /*  get irq */