Skip to content

Commit

Permalink
Staging: comedi: fix printk issue in dt3000.c
Browse files Browse the repository at this point in the history
This is a patch to the dt3000.c file that fixes up a
printk warning found by the checkpatch.pl tool.

Converted printks to dev_<levels>.

Signed-off-by: Ravishankar Karkala Mallikarjunayya <ravishankar.km@greenturtles.in>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Ravishankar karkala Mallikarjunayya authored and Greg Kroah-Hartman committed Dec 14, 2011
1 parent 441ab50 commit b6b31e9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/staging/comedi/drivers/dt3000.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,8 @@ static int dt3k_send_cmd(struct comedi_device *dev, unsigned int cmd)
if ((status & DT3000_COMPLETION_MASK) == DT3000_NOERROR)
return 0;

printk("dt3k_send_cmd() timeout/error status=0x%04x\n", status);
dev_dbg(dev->hw_dev, "dt3k_send_cmd() timeout/error status=0x%04x\n",
status);

return -ETIME;
}
Expand Down Expand Up @@ -452,7 +453,7 @@ static void dt3k_ai_empty_fifo(struct comedi_device *dev,
if (count < 0)
count += AI_FIFO_DEPTH;

printk("reading %d samples\n", count);
dev_dbg(dev->hw_dev, "reading %d samples\n", count);

rear = devpriv->ai_rear;

Expand Down

0 comments on commit b6b31e9

Please sign in to comment.