Re: [PATCH 30/30] Staging: comedi: fix printk() issue in das16m1.c

From: Dan Carpenter
Date: Thu Jul 14 2011 - 03:43:33 EST


On Thu, Jul 14, 2011 at 10:12:27AM +0530, Ravishankar wrote:
> @@ -690,7 +690,7 @@ static int das16m1_attach(struct comedi_device *dev,
> if (!request_region(iobase + DAS16M1_82C55, DAS16M1_SIZE2,
> driver_das16m1.driver_name)) {
> release_region(iobase, DAS16M1_SIZE);
> - printk(" I/O port conflict\n");
> + printk(KERN_ERR " I/O port conflict\n");

This is a continuation of the last printk line.

> return -EIO;
> }
> dev->iobase = iobase;
> @@ -710,7 +710,7 @@ static int das16m1_attach(struct comedi_device *dev,
> } else if (irq == 0) {
> printk(", no irq\n");
> } else {
> - printk(", invalid irq\n"
> + printk(KERN_ERR ", invalid irq\n"

Same.

If you want you can just rewrite the printks completely. You're not
just limited to adding the KERN_ prefixes, you could make larger
changes than that.

regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/