Re: [PATCH v2 1/7] backlight: use pr_warn instead of printk
From: Joe Perches
Date: Wed May 16 2012 - 01:29:16 EST
On Wed, 2012-05-16 at 14:08 +0900, Jingoo Han wrote:
> This patch uses pr_warn instead of printk to allow dynamic debugging.
A slight mistake in the commit message.
pr_debug not pr_warn.
> diff --git a/drivers/video/backlight/backlight.c b/drivers/video/backlight/backlight.c
> index bf5b1ec..f7ce212 100644
> --- a/drivers/video/backlight/backlight.c
> +++ b/drivers/video/backlight/backlight.c
> @@ -5,6 +5,8 @@
> *
> */
>
> +#define pr_fmt(fmt) "backlight: " fmt
I'd prefer:
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
> diff --git a/drivers/video/backlight/lcd.c b/drivers/video/backlight/lcd.c
> index 1c298d5..e61db49 100644
> --- a/drivers/video/backlight/lcd.c
> +++ b/drivers/video/backlight/lcd.c
> @@ -5,6 +5,8 @@
> *
> */
>
> +#define pr_fmt(fmt) "lcd: " fmt
KBUILD_MODNAME here too
--
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/