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

From: Joe Perches
Date: Tue Jul 26 2011 - 01:27:23 EST


On Tue, 2011-07-26 at 10:57 +0530, Ravishankar wrote:
> This is a patch to the c6xdigio.c file that fixes up a printk warning found by the checkpatch.pl tool
> diff --git a/drivers/staging/comedi/drivers/c6xdigio.c b/drivers/staging/comedi/drivers/c6xdigio.c
[]
> @@ -343,7 +343,7 @@ static int c6xdigio_pwmo_insn_read(struct comedi_device *dev,
[]
> - printk("c6xdigio_pwmo_insn_read %x\n", insn->n);
> + pr_info("c6xdigio_pwmo_insn_read %x\n", insn->n);

It would be good if you would convert embedded function names
to "%s", __func__. Maybe convert the bare printks to appropriate
levels as well. Perhaps:

pr_debug("%s: %x\n", __func__, insn->n);


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