[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100804043256.GB25256@core.coreip.homeip.net>
Date: Tue, 3 Aug 2010 21:32:57 -0700
From: Dmitry Torokhov <dmitry.torokhov@...il.com>
To: Joe Perches <joe@...ches.com>
Cc: linux-input <linux-input@...r.kernel.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 2.6.37? ] drivers/input: Use pr_<level>
Hi Joe,
On Tue, Aug 03, 2010 at 11:40:50AM -0700, Joe Perches wrote:
> Remove prefixes from printks and convert to pr_fmt/pr_<level>.
>
> Always make output prefix match module name.
> There are some existing uses that do not. For instance:
> spaceorb used "input: " once, probably a copy/paste error,
> newtonkbd as well. Synaptics used "serio: ", etc.
>
> A few miscellaneous typos corrected.
> Converted a few uses of usb macros err to pr_err.
>
> Compiled x86 only, some files not compile tested
>
Thanks for doing this, however instead of using pr_xxx() I'd like
drivers that are integrated in driver model (serio, usb, gameport, etc,
i.e. when we have 'struct device' available, exept for psmouse) to use
drv_xxx() instead.
>
> diff --git a/drivers/input/mouse/synaptics.c b/drivers/input/mouse/synaptics.c
> index 8c32440..e02c2a7 100644
> --- a/drivers/input/mouse/synaptics.c
> +++ b/drivers/input/mouse/synaptics.c
> @@ -23,6 +23,8 @@
> * Trademarks are the property of their respective owners.
> */
>
> +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
> +
That would make synaptics messages to come as "psmouse", right? I think
we shoudl use
#define pr_fmt(fmt) "synaptics: " fmt
here and in the rest of specialized PS/2 protocol handlers.
Thanks.
--
Dmitry
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists