]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
Staging: comedi: poc: Adding some KERN_ facility level
authorChihau Chau <chihau@gmail.com>
Thu, 25 Feb 2010 20:40:28 +0000 (17:40 -0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 4 Mar 2010 15:59:01 +0000 (07:59 -0800)
This fixes some coding style issues like include KERN_ facility levels
in some printk() and one trailing whitespace error.

Signed-off-by: Chihau Chau <chihau@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/drivers/poc.c

index 28eba6d3cb5a50b747f56770fbdf5227fb0a014b..e15fbd7d3141d419b7463ae7f0d5c556715fac58 100644 (file)
@@ -122,22 +122,21 @@ static int poc_attach(struct comedi_device *dev, struct comedi_devconfig *it)
        unsigned int iosize;
 
        iobase = it->options[0];
-       printk("comedi%d: poc: using %s iobase 0x%lx\n", dev->minor,
+       printk(KERN_INFO "comedi%d: poc: using %s iobase 0x%lx\n", dev->minor,
               this_board->name, iobase);
 
        dev->board_name = this_board->name;
 
        if (iobase == 0) {
-               printk("io base address required\n");
+               printk(KERN_ERR "io base address required\n");
                return -EINVAL;
        }
 
        iosize = this_board->iosize;
        /* check if io addresses are available */
        if (!request_region(iobase, iosize, "dac02")) {
-               printk
-                   ("I/O port conflict: failed to allocate ports 0x%lx to "
-                                       "0x%lx\n", iobase, iobase + iosize - 1);
+               printk(KERN_ERR "I/O port conflict: failed to allocate ports "
+                       "0x%lx to 0x%lx\n", iobase, iobase + iosize - 1);
                return -EIO;
        }
        dev->iobase = iobase;