lkml.org 
[lkml]   [2011]   [Dec]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 12/30] Staging: comedi: fix printk issue in contec_pci_dio.c
Date
This is a patch to the contec_pci_dio.c file that fixes up a
printk warning found by the checkpatch.pl tool.

Added KERN_facility levels to printks.

Signed-off-by: Ravishankar Karkala Mallikarjunayya <ravishankar.km@greenturtles.in>
---
drivers/staging/comedi/drivers/contec_pci_dio.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/drivers/staging/comedi/drivers/contec_pci_dio.c b/drivers/staging/comedi/drivers/contec_pci_dio.c
index db73638..64f5f49 100644
--- a/drivers/staging/comedi/drivers/contec_pci_dio.c
+++ b/drivers/staging/comedi/drivers/contec_pci_dio.c
@@ -105,7 +105,7 @@ static int contec_attach(struct comedi_device *dev, struct comedi_devconfig *it)
struct pci_dev *pcidev = NULL;
struct comedi_subdevice *s;

- printk("comedi%d: contec: ", dev->minor);
+ printk(KERN_DEBUG "comedi%d: contec: attached\n", dev->minor);

dev->board_name = thisboard->name;

@@ -132,7 +132,7 @@ static int contec_attach(struct comedi_device *dev, struct comedi_devconfig *it)
return -EIO;
}
dev->iobase = pci_resource_start(pcidev, 0);
- printk(" base addr %lx ", dev->iobase);
+ printk(KERN_DEBUG "base addr %lx ", dev->iobase);

dev->board_ptr = contec_boards + 0;

@@ -153,20 +153,18 @@ static int contec_attach(struct comedi_device *dev, struct comedi_devconfig *it)
s->range_table = &range_digital;
s->insn_bits = contec_do_insn_bits;

- printk("attached\n");
-
return 1;
}
}

- printk("card not present!\n");
+ printk(KERN_ERR "card not present!\n");

return -EIO;
}

static int contec_detach(struct comedi_device *dev)
{
- printk("comedi%d: contec: remove\n", dev->minor);
+ printk(KERN_DEBUG "comedi%d: contec: remove\n", dev->minor);

if (devpriv && devpriv->pci_dev) {
if (dev->iobase)
--
1.7.0.4


\
 
 \ /
  Last update: 2011-12-08 13:55    [W:0.116 / U:0.408 seconds]
©2003-2014 Jasper Spaans. Advertise on this site