Re: [PATCH 1/9] Staging: comedi: fix printk issue in cb_pcidio.c

From: Ryan Mallon
Date: Mon Oct 03 2011 - 19:27:48 EST


On 30/09/11 23:18, Ravishankar Karkala Mallikarjunayya wrote:

> This is a patch to the cb_pcidio.c file that fixes up a printk warning found by the checkpatch.pl tool
>
> Signed-off-by: Ravishankar Karkala Mallikarjunayya <ravishankar.km@xxxxxxxxxxxxxxx>
> ---
> drivers/staging/comedi/drivers/cb_pcidio.c | 27 +++++++++++++++------------
> 1 files changed, 15 insertions(+), 12 deletions(-)
>
> diff --git a/drivers/staging/comedi/drivers/cb_pcidio.c b/drivers/staging/comedi/drivers/cb_pcidio.c
> index 79477a5..85cc78d 100644
> --- a/drivers/staging/comedi/drivers/cb_pcidio.c
> +++ b/drivers/staging/comedi/drivers/cb_pcidio.c
> @@ -184,7 +184,8 @@ static int pcidio_attach(struct comedi_device *dev, struct comedi_devconfig *it)
> int index;
> int i;
>
> - printk("comedi%d: cb_pcidio: \n", dev->minor);
> + dev_info(&pcidev->dev, "comedi%d: cb_pcidio:\n",
> + dev->minor);
>
> /*
> * Allocate the private structure area. alloc_private() is a
> @@ -223,8 +224,9 @@ static int pcidio_attach(struct comedi_device *dev, struct comedi_devconfig *it)
> }
> }
>
> - printk("No supported ComputerBoards/MeasurementComputing card found on "
> - "requested position\n");
> + dev_err(&pcidev->dev, "No supported"
> + " ComputerBoards/MeasurementComputing"
> + " card found on requested position\n");


printk strings should be on a single line (80 column rule doesn't apply)
so that they can be easily grepped for. There are many instances which
need to be fixed in this series.

~Ryan
--
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/