diff options
author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2013-11-26 18:41:50 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-12-03 12:20:20 -0500 |
commit | f3b672cf44ab1656098fbe3a8b087fd33d0e8a11 (patch) | |
tree | c483555d8682ef01d8d52204ed965e0b330cc813 | |
parent | 5fc517cd94f56d07c614d300d83289ce3977ee90 (diff) |
staging: comedi: dt2801: convert printk() messages to dev_dbg()
Convert all the printk() messages in this driver to dev_dbg().
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/comedi/drivers/dt2801.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/staging/comedi/drivers/dt2801.c b/drivers/staging/comedi/drivers/dt2801.c index 065e78060935..4bf2c7f8f551 100644 --- a/drivers/staging/comedi/drivers/dt2801.c +++ b/drivers/staging/comedi/drivers/dt2801.c | |||
@@ -336,11 +336,11 @@ static int dt2801_writecmd(struct comedi_device *dev, int command) | |||
336 | 336 | ||
337 | stat = inb_p(dev->iobase + DT2801_STATUS); | 337 | stat = inb_p(dev->iobase + DT2801_STATUS); |
338 | if (stat & DT_S_COMPOSITE_ERROR) { | 338 | if (stat & DT_S_COMPOSITE_ERROR) { |
339 | printk | 339 | dev_dbg(dev->class_dev, |
340 | ("dt2801: composite-error in dt2801_writecmd(), ignoring\n"); | 340 | "composite-error in %s, ignoring\n", __func__); |
341 | } | 341 | } |
342 | if (!(stat & DT_S_READY)) | 342 | if (!(stat & DT_S_READY)) |
343 | printk("dt2801: !ready in dt2801_writecmd(), ignoring\n"); | 343 | dev_dbg(dev->class_dev, "!ready in %s, ignoring\n", __func__); |
344 | outb_p(command, dev->iobase + DT2801_CMD); | 344 | outb_p(command, dev->iobase + DT2801_CMD); |
345 | 345 | ||
346 | return 0; | 346 | return 0; |
@@ -370,7 +370,7 @@ static int dt2801_reset(struct comedi_device *dev) | |||
370 | break; | 370 | break; |
371 | } while (timeout--); | 371 | } while (timeout--); |
372 | if (!timeout) | 372 | if (!timeout) |
373 | printk("dt2801: timeout 1 status=0x%02x\n", stat); | 373 | dev_dbg(dev->class_dev, "timeout 1 status=0x%02x\n", stat); |
374 | 374 | ||
375 | /* dt2801_readdata(dev,&board_code); */ | 375 | /* dt2801_readdata(dev,&board_code); */ |
376 | 376 | ||
@@ -385,7 +385,7 @@ static int dt2801_reset(struct comedi_device *dev) | |||
385 | break; | 385 | break; |
386 | } while (timeout--); | 386 | } while (timeout--); |
387 | if (!timeout) | 387 | if (!timeout) |
388 | printk("dt2801: timeout 2 status=0x%02x\n", stat); | 388 | dev_dbg(dev->class_dev, "timeout 2 status=0x%02x\n", stat); |
389 | 389 | ||
390 | dt2801_readdata(dev, &board_code); | 390 | dt2801_readdata(dev, &board_code); |
391 | 391 | ||
@@ -448,12 +448,12 @@ static int dt2801_error(struct comedi_device *dev, int stat) | |||
448 | { | 448 | { |
449 | if (stat < 0) { | 449 | if (stat < 0) { |
450 | if (stat == -ETIME) | 450 | if (stat == -ETIME) |
451 | printk("dt2801: timeout\n"); | 451 | dev_dbg(dev->class_dev, "timeout\n"); |
452 | else | 452 | else |
453 | printk("dt2801: error %d\n", stat); | 453 | dev_dbg(dev->class_dev, "error %d\n", stat); |
454 | return stat; | 454 | return stat; |
455 | } | 455 | } |
456 | printk("dt2801: error status 0x%02x, resetting...\n", stat); | 456 | dev_dbg(dev->class_dev, "error status 0x%02x, resetting...\n", stat); |
457 | 457 | ||
458 | dt2801_reset(dev); | 458 | dt2801_reset(dev); |
459 | dt2801_reset(dev); | 459 | dt2801_reset(dev); |
@@ -584,8 +584,8 @@ static int dt2801_attach(struct comedi_device *dev, struct comedi_devconfig *it) | |||
584 | if (boardtypes[type].boardcode == board_code) | 584 | if (boardtypes[type].boardcode == board_code) |
585 | goto havetype; | 585 | goto havetype; |
586 | } | 586 | } |
587 | printk("dt2801: unrecognized board code=0x%02x, contact author\n", | 587 | dev_dbg(dev->class_dev, |
588 | board_code); | 588 | "unrecognized board code=0x%02x, contact author\n", board_code); |
589 | type = 0; | 589 | type = 0; |
590 | 590 | ||
591 | havetype: | 591 | havetype: |