Commit 2c2fedf2 authored by Ravishankar karkala Mallikarjunayya's avatar Ravishankar karkala Mallikarjunayya Committed by Greg Kroah-Hartman

Staging: comedi: fix printk issue in jr3_pci.c

This is a patch to the jr3_pci.c file that fixes up a
printk warning found by the checkpatch.pl tool.

Converted printks to dev_dbg().
Signed-off-by: default avatarRavishankar Karkala Mallikarjunayya <ravishankar.km@greenturtles.in>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 5ec8df5e
...@@ -372,14 +372,14 @@ static int jr3_pci_open(struct comedi_device *dev) ...@@ -372,14 +372,14 @@ static int jr3_pci_open(struct comedi_device *dev)
int i; int i;
struct jr3_pci_dev_private *devpriv = dev->private; struct jr3_pci_dev_private *devpriv = dev->private;
printk("jr3_pci_open\n"); dev_dbg(dev->hw_dev, "jr3_pci_open\n");
for (i = 0; i < devpriv->n_channels; i++) { for (i = 0; i < devpriv->n_channels; i++) {
struct jr3_pci_subdev_private *p; struct jr3_pci_subdev_private *p;
p = dev->subdevices[i].private; p = dev->subdevices[i].private;
if (p) { if (p) {
printk("serial: %p %d (%d)\n", p, p->serial_no, dev_dbg(dev->hw_dev, "serial: %p %d (%d)\n", p,
p->channel_no); p->serial_no, p->channel_no);
} }
} }
return 0; return 0;
...@@ -457,8 +457,8 @@ static int jr3_download_firmware(struct comedi_device *dev, const u8 * data, ...@@ -457,8 +457,8 @@ static int jr3_download_firmware(struct comedi_device *dev, const u8 * data,
break; break;
more = more more = more
&& read_idm_word(data, size, &pos, &addr); && read_idm_word(data, size, &pos, &addr);
printk("Loading#%d %4.4x bytes at %4.4x\n", i, dev_dbg(dev->hw_dev, "Loading#%d %4.4x bytes at %4.4x\n",
count, addr); i, count, addr);
while (more && count > 0) { while (more && count > 0) {
if (addr & 0x4000) { if (addr & 0x4000) {
/* 16 bit data, never seen in real life!! */ /* 16 bit data, never seen in real life!! */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment