public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Marek Behun <marek.behun@nic.cz>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 3/4] fs: btrfs: Fix printf format character warning
Date: Sat, 27 Jan 2018 23:17:38 +0100	[thread overview]
Message-ID: <20180127231738.2dc8d103@nic.cz> (raw)
In-Reply-To: <1517082491-13491-3-git-send-email-trini@konsulko.com>

shouldn't in that case the (u32) cast be removed?

On Sat, 27 Jan 2018 14:48:10 -0500
Tom Rini <trini@konsulko.com> wrote:

> When printing a size_t value we need to use %zu for portability
> between 32bit and 64bit targets.
> 
> Cc: Marek Behún <marek.behun@nic.cz>
> Signed-off-by: Tom Rini <trini@konsulko.com>
> ---
>  fs/btrfs/super.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c
> index 2529c2b3b6a6..b0a5cffce31e 100644
> --- a/fs/btrfs/super.c
> +++ b/fs/btrfs/super.c
> @@ -147,7 +147,7 @@ static int btrfs_check_super(struct
> btrfs_super_block *sb) 
>  	if (sb->sys_chunk_array_size < sizeof(struct btrfs_key) +
>  	    sizeof(struct btrfs_chunk)) {
> -		printf("%s: system chunk array too small %u <
> %lu\n", __func__,
> +		printf("%s: system chunk array too small %u <
> %zu\n", __func__, sb->sys_chunk_array_size, (u32) sizeof(struct
> btrfs_key)
>  		       + sizeof(struct btrfs_chunk));
>  		ret = -1;

  reply	other threads:[~2018-01-27 22:17 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-27 19:48 [U-Boot] [PATCH 1/4] mvpp2: Fix warning over 32bit vs 64bit targets Tom Rini
2018-01-27 19:48 ` [U-Boot] [PATCH 2/4] usb: gadget: dwc2: " Tom Rini
2018-01-27 19:52   ` Marek Vasut
2018-01-27 19:56     ` Tom Rini
2018-01-27 20:09       ` Marek Vasut
2018-01-27 20:17       ` Dr. Philipp Tomsich
2018-01-27 20:31         ` Marek Vasut
2018-01-28  9:57           ` Lukasz Majewski
2018-01-27 19:48 ` [U-Boot] [PATCH 3/4] fs: btrfs: Fix printf format character warning Tom Rini
2018-01-27 22:17   ` Marek Behun [this message]
2018-01-27 22:23   ` [U-Boot] [PATCH v2 " Tom Rini
2018-01-27 22:36     ` Marek Behun
2018-01-29 20:21     ` [U-Boot] [U-Boot, v2, " Tom Rini
2018-01-27 19:48 ` [U-Boot] [PATCH 4/4] usb: ehci-mxs: Fix argument order for ehci_writel() Tom Rini
2018-01-27 19:53   ` Marek Vasut
2018-01-27 19:53     ` Tom Rini
2018-01-29  7:15 ` [U-Boot] [PATCH 1/4] mvpp2: Fix warning over 32bit vs 64bit targets Stefan Roese
2018-01-29 17:46 ` Joe Hershberger
2018-01-29 20:20 ` [U-Boot] [U-Boot, " 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=20180127231738.2dc8d103@nic.cz \
    --to=marek.behun@nic.cz \
    --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