From: Dmitry Torokhov <dmitry.torokhov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Oliver Neukum <oneukum-l3A5Bk7waGM@public.gmane.org>
Cc: jkosina-AlSwsSmVLrQ@public.gmane.org,
linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] ff-core: use new debug macros
Date: Tue, 14 Apr 2015 14:24:51 -0700 [thread overview]
Message-ID: <20150414212451.GE29874@dtor-ws> (raw)
In-Reply-To: <1429013170-15053-1-git-send-email-oneukum-l3A5Bk7waGM@public.gmane.org>
On Tue, Apr 14, 2015 at 02:06:10PM +0200, Oliver Neukum wrote:
> Replace old pr_* with dev_* debugging macros
Not so new anymore ;)
Applied, thank you.
>
> Signed-off-by: Oliver Neukum <oneukum-l3A5Bk7waGM@public.gmane.org>
> ---
> drivers/input/ff-core.c | 10 ++++------
> 1 file changed, 4 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/input/ff-core.c b/drivers/input/ff-core.c
> index f50f6dd..b81c88c 100644
> --- a/drivers/input/ff-core.c
> +++ b/drivers/input/ff-core.c
> @@ -23,8 +23,6 @@
>
> /* #define DEBUG */
>
> -#define pr_fmt(fmt) KBUILD_BASENAME ": " fmt
> -
> #include <linux/input.h>
> #include <linux/module.h>
> #include <linux/mutex.h>
> @@ -116,7 +114,7 @@ int input_ff_upload(struct input_dev *dev, struct ff_effect *effect,
>
> if (effect->type < FF_EFFECT_MIN || effect->type > FF_EFFECT_MAX ||
> !test_bit(effect->type, dev->ffbit)) {
> - pr_debug("invalid or not supported effect type in upload\n");
> + dev_dbg(&dev->dev, "invalid or not supported effect type in upload\n");
> return -EINVAL;
> }
>
> @@ -124,7 +122,7 @@ int input_ff_upload(struct input_dev *dev, struct ff_effect *effect,
> (effect->u.periodic.waveform < FF_WAVEFORM_MIN ||
> effect->u.periodic.waveform > FF_WAVEFORM_MAX ||
> !test_bit(effect->u.periodic.waveform, dev->ffbit))) {
> - pr_debug("invalid or not supported wave form in upload\n");
> + dev_dbg(&dev->dev, "invalid or not supported wave form in upload\n");
> return -EINVAL;
> }
>
> @@ -246,7 +244,7 @@ static int flush_effects(struct input_dev *dev, struct file *file)
> struct ff_device *ff = dev->ff;
> int i;
>
> - pr_debug("flushing now\n");
> + dev_dbg(&dev->dev, "flushing now\n");
>
> mutex_lock(&ff->mutex);
>
> @@ -316,7 +314,7 @@ int input_ff_create(struct input_dev *dev, unsigned int max_effects)
> int i;
>
> if (!max_effects) {
> - pr_err("cannot allocate device without any effects\n");
> + dev_err(&dev->dev, "cannot allocate device without any effects\n");
> return -EINVAL;
> }
>
> --
> 2.1.4
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-input" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Dmitry
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2015-04-14 21:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-14 12:06 [PATCH] ff-core: use new debug macros Oliver Neukum
[not found] ` <1429013170-15053-1-git-send-email-oneukum-l3A5Bk7waGM@public.gmane.org>
2015-04-14 21:24 ` Dmitry Torokhov [this message]
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=20150414212451.GE29874@dtor-ws \
--to=dmitry.torokhov-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=jkosina-AlSwsSmVLrQ@public.gmane.org \
--cc=linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=oneukum-l3A5Bk7waGM@public.gmane.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