From: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
To: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: Zhang Rui <rui.zhang@intel.com>, Len Brown <lenb@kernel.org>,
linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] acpi: fan.c: printk replacement
Date: Tue, 26 Aug 2014 21:00:39 +0530 [thread overview]
Message-ID: <20140826153039.GA2684@sudip-PC> (raw)
In-Reply-To: <6969509.uGLFfCOQBb@vostro.rjw.lan>
On Tue, Aug 26, 2014 at 12:45:20AM +0200, Rafael J. Wysocki wrote:
> On Friday, August 22, 2014 05:33:21 PM Sudip Mukherjee wrote:
> > printk replaced with corresponding dev_err and dev_info
> > fixed one broken user-visible string
> > multiine comment edited for correct commenting style
> > asm/uaccess.h replaced with linux/uaccess.h
> >
> > Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
> > ---
> > drivers/acpi/fan.c | 18 +++++++++---------
> > 1 file changed, 9 insertions(+), 9 deletions(-)
> >
> > diff --git a/drivers/acpi/fan.c b/drivers/acpi/fan.c
> > index 8acf53e..7900d55 100644
> > --- a/drivers/acpi/fan.c
> > +++ b/drivers/acpi/fan.c
> > @@ -27,7 +27,7 @@
> > #include <linux/module.h>
> > #include <linux/init.h>
> > #include <linux/types.h>
> > -#include <asm/uaccess.h>
> > +#include <linux/uaccess.h>
> > #include <linux/thermal.h>
> > #include <linux/acpi.h>
> >
> > @@ -127,8 +127,9 @@ static const struct thermal_cooling_device_ops fan_cooling_ops = {
> > };
> >
> > /* --------------------------------------------------------------------------
> > - Driver Interface
> > - -------------------------------------------------------------------------- */
> > + * Driver Interface
> > + * --------------------------------------------------------------------------
> > +*/
> >
> > static int acpi_fan_add(struct acpi_device *device)
> > {
> > @@ -143,7 +144,7 @@ static int acpi_fan_add(struct acpi_device *device)
> >
> > result = acpi_bus_update_power(device->handle, NULL);
> > if (result) {
> > - printk(KERN_ERR PREFIX "Setting initial power state\n");
> > + dev_err(&device->dev, PREFIX "Setting initial power state\n");
>
> While at it, please define a proper pr_fmt() for this file and get rid of PREFIX
> too.
>
> Otherwise I don't see a compelling reason to apply this.
>
Hi,
Since in the patch I am not using any pr_* , so I am unable to understand why you are asking for a proper pr_fmt().
I can get rid of the PREFIX . Then should I use pr_* in the patch instead of dev_* ?
My understanding was dev_* is more preffered than pr_*.
waiting for your suggestion on this.
thanks
sudip
> >
>
> --
> I speak only for myself.
> Rafael J. Wysocki, Intel Open Source Technology Center.
next prev parent reply other threads:[~2014-08-26 15:30 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-22 12:03 [PATCH] acpi: fan.c: printk replacement Sudip Mukherjee
2014-08-25 22:45 ` Rafael J. Wysocki
2014-08-26 15:30 ` Sudip Mukherjee [this message]
2014-08-26 21:02 ` Rafael J. Wysocki
2014-08-26 20:59 ` Joe Perches
2014-08-26 21:22 ` Rafael J. Wysocki
2014-08-27 4:57 ` Sudip Mukherjee
2014-08-27 23:26 ` Rafael J. Wysocki
2014-08-28 12:29 ` Sudip Mukherjee
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=20140826153039.GA2684@sudip-PC \
--to=sudipm.mukherjee@gmail.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rjw@rjwysocki.net \
--cc=rui.zhang@intel.com \
/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