Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1290518 > unrolled thread

Re: [PATCH 1/1] Remove unneeded "0x" when %pa formatting is used.

Started byAndy Shevchenko <andy.shevchenko@gmail.com>
First post2015-12-13 02:20 +0100
Last post2015-12-13 02:20 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 1/1] Remove unneeded "0x" when %pa formatting is used. Andy Shevchenko <andy.shevchenko@gmail.com> - 2015-12-13 02:20 +0100

#1290518 — Re: [PATCH 1/1] Remove unneeded "0x" when %pa formatting is used.

FromAndy Shevchenko <andy.shevchenko@gmail.com>
Date2015-12-13 02:20 +0100
SubjectRe: [PATCH 1/1] Remove unneeded "0x" when %pa formatting is used.
Message-ID<qF3up-1x9-3@gated-at.bofh.it>
On Mon, Nov 30, 2015 at 10:33 PM, Dmitry Krivenok
<krivenok.dmitry@gmail.com> wrote:
>>>      if (size > max_size) {
>>>          dev_err(pcie->dev,
>>> -            "res size 0x%pap exceeds max supported size 0x%llx\n",
>>> +            "res size %pap exceeds max supported size 0x%llx\n",
>>
>> %pa also works.
>>
>
> Yes, but AFAIK %pap and %pa are identical (see address_val() in lib/vsprintf.c),
> so I'm not sure I understand your comment.
>
> Did you mean that %pa should be used instead of %pap?
> I see that %pa is used much more often than %pap, but I didn't find any
> evidence that %pap is deprecated.

+Rasmus.

No, it's not, but it explicitly for phys_addr_t (it might be nice to
to have %par, for example for explicitly shown that is for
resource_size_t, Rasmus?).

For my opinion for resources better to use %pa for now, though %pap
will work as well.

-- 
With Best Regards,
Andy Shevchenko
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web