From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Joe Perches <joe@perches.com>
Cc: linux-input <linux-input@vger.kernel.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 2.6.37? ] drivers/input: Use pr_<level>
Date: Tue, 3 Aug 2010 21:32:57 -0700 [thread overview]
Message-ID: <20100804043256.GB25256@core.coreip.homeip.net> (raw)
In-Reply-To: <1280860850.2963.24.camel@Joe-Laptop.home>
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
next prev parent reply other threads:[~2010-08-04 4:33 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-03 18:40 Joe Perches
2010-08-04 4:32 ` Dmitry Torokhov [this message]
2010-08-04 7:33 ` Joe Perches
2010-08-04 8:04 ` Dmitry Torokhov
2010-08-04 8:44 ` Joe Perches
2010-08-05 6:44 ` Dmitry Torokhov
2010-08-05 7:29 ` [PATCH 0/9] " Joe Perches
2010-08-05 7:29 ` [PATCH 1/9] drivers/input/gameport: Use pr_fmt and pr_<level> Joe Perches
2010-08-05 7:29 ` [PATCH 2/9] drivers/input/joystick: " Joe Perches
2010-08-05 7:29 ` [PATCH 3/9] drivers/input/keyboard: " Joe Perches
2010-08-05 7:29 ` [PATCH 4/9] drivers/input/misc: " Joe Perches
2010-08-05 7:29 ` [PATCH 5/9] drivers/input/mouse: " Joe Perches
2010-08-05 7:29 ` [PATCH 6/9] drivers/input/serio: " Joe Perches
2010-08-05 7:29 ` [PATCH 7/9] drivers/input/tablet: " Joe Perches
2010-08-05 7:29 ` [PATCH 8/9] drivers/input/touchscreen: " Joe Perches
2010-08-05 7:29 ` [PATCH 9/9] drivers/input: " Joe Perches
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100804043256.GB25256@core.coreip.homeip.net \
--to=dmitry.torokhov@gmail.com \
--cc=joe@perches.com \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®