From: Joe Perches <joe@perches.com>
To: Olof Johansson <olof@lixom.net>
Cc: linus.walleij@linaro.org, linux-gpio@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] gpio: pl061: print resource_size_t as %pa
Date: Tue, 26 Nov 2013 11:14:02 -0800 [thread overview]
Message-ID: <1385493242.20100.71.camel@joe-AO722> (raw)
In-Reply-To: <1385492161-27624-1-git-send-email-olof@lixom.net>
On Tue, 2013-11-26 at 10:56 -0800, Olof Johansson wrote:
> commit 73675c8aa07 ('gpio: pl061: proper error messages') added a printout
> of a resource_size_t using %x, which produces an error for builds with
> 64-bit resources:
What tree is this?
> drivers/gpio/gpio-pl061.c:345:3: warning: format '%x' expects argument of
> type 'unsigned int', but argument 3 has type 'resource_size_t'
>
> Switch to %pa (and pass in a pointer to the resource instead).
>
> Fixes: 73675c8aa07 ('gpio: pl061: proper error messages')
[]
> diff --git a/drivers/gpio/gpio-pl061.c b/drivers/gpio/gpio-pl061.c
[]
> @@ -341,8 +341,8 @@ static int pl061_probe(struct amba_device *adev, const struct amba_id *id)
> }
>
> amba_set_drvdata(adev, chip);
> - dev_err(&adev->dev, "PL061 GPIO chip @%08x registered\n",
> - adev->res.start);
> + dev_err(&adev->dev, "PL061 GPIO chip @%pa registered\n",
> + &adev->res.start);
This looks as if this should not use dev_err, but maybe dev_info
and maybe it should use %pR, &adev->res
next prev parent reply other threads:[~2013-11-26 19:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-26 18:56 Olof Johansson
2013-11-26 19:14 ` Joe Perches [this message]
2013-11-26 19:17 ` Olof Johansson
2013-11-26 23:49 ` Linus Walleij
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=1385493242.20100.71.camel@joe-AO722 \
--to=joe@perches.com \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=olof@lixom.net \
/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®