From: Andy Shevchenko <andy.shevchenko@gmail.com>
To: Joe Perches <joe@perches.com>
Cc: Darren Hart <dvhart@infradead.org>,
Andy Shevchenko <andy@infradead.org>,
Platform Driver <platform-driver-x86@vger.kernel.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] platform/x86: wmi: Fix misuse of vsprintf extension %pULL
Date: Thu, 1 Mar 2018 18:39:07 +0200 [thread overview]
Message-ID: <CAHp75Ve6H9Ra4zm-EA6+1rHenoOkQJi9d=OJ+0B64HjxLkPBvQ@mail.gmail.com> (raw)
In-Reply-To: <77b9d62ee2600bb01c08c618e67b63c8aaa35f49.1519920316.git.joe@perches.com>
On Thu, Mar 1, 2018 at 6:08 PM, Joe Perches <joe@perches.com> wrote:
> %pULL doesn't officially exist but %pUL does.
>
> Miscellanea:
>
> o Add missing newlines to a couple logging messages
Darren, are you agree on the change?
To me it seems fine.
> Signed-off-by: Joe Perches <joe@perches.com>
> ---
> drivers/platform/x86/wmi.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/platform/x86/wmi.c b/drivers/platform/x86/wmi.c
> index f90ba83359f5..8e3d0146ff8c 100644
> --- a/drivers/platform/x86/wmi.c
> +++ b/drivers/platform/x86/wmi.c
> @@ -936,7 +936,7 @@ static int wmi_dev_probe(struct device *dev)
> wblock->char_dev.mode = 0444;
> ret = misc_register(&wblock->char_dev);
> if (ret) {
> - dev_warn(dev, "failed to register char dev: %d", ret);
> + dev_warn(dev, "failed to register char dev: %d\n", ret);
> ret = -ENOMEM;
> goto probe_misc_failure;
> }
> @@ -1039,7 +1039,7 @@ static int wmi_create_device(struct device *wmi_bus_dev,
>
> if (result) {
> dev_warn(wmi_bus_dev,
> - "%s data block query control method not found",
> + "%s data block query control method not found\n",
> method);
> return result;
> }
> @@ -1189,7 +1189,7 @@ static int parse_wdg(struct device *wmi_bus_dev, struct acpi_device *device)
>
> retval = device_add(&wblock->dev.dev);
> if (retval) {
> - dev_err(wmi_bus_dev, "failed to register %pULL\n",
> + dev_err(wmi_bus_dev, "failed to register %pUL\n",
> wblock->gblock.guid);
> if (debug_event)
> wmi_method_enable(wblock, 0);
> --
> 2.15.0
>
--
With Best Regards,
Andy Shevchenko
next prev parent reply other threads:[~2018-03-01 16:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-01 16:08 [PATCH] platform/x86: wmi: Fix misuse of vsprintf extension %pULL Joe Perches
2018-03-01 16:39 ` Andy Shevchenko [this message]
2018-03-01 18:05 ` Darren Hart
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='CAHp75Ve6H9Ra4zm-EA6+1rHenoOkQJi9d=OJ+0B64HjxLkPBvQ@mail.gmail.com' \
--to=andy.shevchenko@gmail.com \
--cc=andy@infradead.org \
--cc=dvhart@infradead.org \
--cc=joe@perches.com \
--cc=linux-kernel@vger.kernel.org \
--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;
as well as URLs for NNTP newsgroup(s).