From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [U-Boot, 3/3] Remove <inttypes.h> includes and PRI* usages in printf() entirely
Date: Tue, 11 Sep 2018 08:25:17 -0400 [thread overview]
Message-ID: <20180911122517.GD4980@bill-the-cat> (raw)
In-Reply-To: <1533556060-26284-3-git-send-email-yamada.masahiro@socionext.com>
On Mon, Aug 06, 2018 at 08:47:40PM +0900, Masahiro Yamada wrote:
> In int-ll64.h, we always use the following typedefs:
>
> typedef unsigned int u32;
> typedef unsigned long uintptr_t;
> typedef unsigned long long u64;
>
> This does not need to match to the compiler's <inttypes.h>.
> Do not include it.
>
> The use of PRI* makes the code super-ugly. You can simply use
> "l" for printing uintptr_t, "ll" for u64, and no modifier for u32.
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180911/258ca0a7/attachment.sig>
next prev parent reply other threads:[~2018-09-11 12:25 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-06 11:47 [U-Boot] [PATCH 1/3] Remove CONFIG_USE_STDINT Masahiro Yamada
2018-08-06 11:47 ` [U-Boot] [PATCH 2/3] arch: types.h: factor out fixed width typedefs to int-ll64.h Masahiro Yamada
2018-09-11 12:25 ` [U-Boot] [U-Boot, " Tom Rini
2018-08-06 11:47 ` [U-Boot] [PATCH 3/3] Remove <inttypes.h> includes and PRI* usages in printf() entirely Masahiro Yamada
2018-08-06 13:20 ` Andy Shevchenko
2018-08-07 2:11 ` Masahiro Yamada
2018-09-11 12:25 ` Tom Rini [this message]
2018-09-11 12:25 ` [U-Boot] [U-Boot,1/3] Remove CONFIG_USE_STDINT Tom Rini
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=20180911122517.GD4980@bill-the-cat \
--to=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
/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