X86 platform drivers
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: "Lee, Chun-Yi" <joeyli.kernel@gmail.com>
Cc: mjg@redhat.com, platform-driver-x86@vger.kernel.org, "Lee,
	Chun-Yi" <jlee@novell.com>,
	Carlos Corbacho <carlos@strangeworlds.co.uk>,
	Corentin Chary <corentincj@iksaif.net>
Subject: Re: [PATCH] msi-laptop: use pr_<level> for messages
Date: Sat, 12 Mar 2011 22:31:01 -0800	[thread overview]
Message-ID: <20110313063101.GE31566@core.coreip.homeip.net> (raw)
In-Reply-To: <1299754954-27787-1-git-send-email-jlee@novell.com>

On Thu, Mar 10, 2011 at 07:02:34PM +0800, Lee, Chun-Yi wrote:
> msi-laptop: use pr_<level> for messages
> 
> Cc: Carlos Corbacho <carlos@strangeworlds.co.uk>
> Cc: Matthew Garrett <mjg@redhat.com>
> Cc: Dmitry Torokhov <dtor@mail.ru>
> Cc: Corentin Chary <corentincj@iksaif.net>
> Signed-off-by: Lee, Chun-Yi <jlee@novell.com>
> ---
>  drivers/platform/x86/msi-laptop.c |   13 ++++++-------
>  1 files changed, 6 insertions(+), 7 deletions(-)
> 
> diff --git a/drivers/platform/x86/msi-laptop.c b/drivers/platform/x86/msi-laptop.c
> index 028d2c6..77a6c3b 100644
> --- a/drivers/platform/x86/msi-laptop.c
> +++ b/drivers/platform/x86/msi-laptop.c
> @@ -445,8 +445,7 @@ static struct platform_device *msipf_device;
>  
>  static int dmi_check_cb(const struct dmi_system_id *id)
>  {
> -	printk(KERN_INFO "msi-laptop: Identified laptop model '%s'.\n",
> -	       id->ident);
> +	pr_info("msi-laptop: Identified laptop model '%s'.\n", id->ident);

No, you need to add:

#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt

at the very beginning of your driver (before includes) and then just do

	pr_info("Identified laptop model '%s'.\n", id->ident);

and pr_fmt() will ensure that alll your messages use consistent prefix.

Thanks.

-- 
Dmitry

  reply	other threads:[~2011-03-13  6:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-10 11:02 [PATCH] msi-laptop: use pr_<level> for messages Lee, Chun-Yi
2011-03-13  6:31 ` Dmitry Torokhov [this message]
2011-03-16  7:55   ` Joey Lee
2011-03-16  8:22     ` Dmitry Torokhov
2011-03-16  9:59       ` Joey Lee

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=20110313063101.GE31566@core.coreip.homeip.net \
    --to=dmitry.torokhov@gmail.com \
    --cc=carlos@strangeworlds.co.uk \
    --cc=corentincj@iksaif.net \
    --cc=jlee@novell.com \
    --cc=joeyli.kernel@gmail.com \
    --cc=mjg@redhat.com \
    --cc=platform-driver-x86@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