linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: NeilBrown <neilb@suse.de>
To: Michel Normand <normand@linux.vnet.ibm.com>
Cc: linux-raid@vger.kernel.org,
	Guy Menanteau <menantea@linux.vnet.ibm.com>,
	Jes Sorensen <Jes.Sorensen@redhat.com>
Subject: Re: [PATCH] V2 cast print arguments in super-ddf.c
Date: Tue, 5 Aug 2014 09:00:55 +1000	[thread overview]
Message-ID: <20140805090055.2b0b6dd5@notabene.brown> (raw)
In-Reply-To: <1407163983-29770-1-git-send-email-normand@linux.vnet.ibm.com>

[-- Attachment #1: Type: text/plain, Size: 2163 bytes --]

On Mon,  4 Aug 2014 16:53:03 +0200 Michel Normand
<normand@linux.vnet.ibm.com> wrote:

> From: Guy Menanteau <menantea@linux.vnet.ibm.com>
> 
> V2 differs only by correct From and Signe-off fields.
> 
> as per rhbz https://bugzilla.redhat.com/show_bug.cgi?id=1125883
> the mdadm is failing on ppc64 and ppc64le architectures.
> ===
> super-ddf.c: In function '_set_config_size':
> super-ddf.c:2849:4: error: format '%llx' expects argument of type 'long long unsigned int', but argument 6 has type '__u64' [-Werror=format=]
>     pr_err("%s: %x:%x: workspace size 0x%llx too big, ignoring\n",
>     ^
> super-ddf.c:2855:2: error: format '%llx' expects argument of type 'long long unsigned int', but argument 6 has type '__u64' [-Werror=format=]
>   dprintf("%s: %x:%x config_size %llx, DDF structure is %llx blocks\n",
>   ^
> cc1: all warnings being treated as errors
> <builtin>: recipe for target 'super-ddf.o' failed
> ===

Thanks a lot of the patch.  I've applied it and it will be in mdadm-3.3.2.

NeilBrown


> 
> Signed-off-by: <menantea@linux.vnet.ibm.com>
> Signed-off-by: Michel Normand <normand@linux.vnet.ibm.com>
> ---
>  super-ddf.c |    6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/super-ddf.c b/super-ddf.c
> index 8957c2e..bc0ce2c 100644
> --- a/super-ddf.c
> +++ b/super-ddf.c
> @@ -2847,13 +2847,15 @@ static void _set_config_size(struct phys_disk_entry *pde, const struct dl *dl)
>  		__u64 wsp = cfs - t;
>  		if (wsp > 1024*1024*2ULL && wsp > dl->size / 16) {
>  			pr_err("%s: %x:%x: workspace size 0x%llx too big, ignoring\n",
> -			       __func__, dl->major, dl->minor, wsp);
> +			       __func__, dl->major, dl->minor,
> +			       (unsigned long long)wsp);
>  		} else
>  			cfs = t;
>  	}
>  	pde->config_size = cpu_to_be64(cfs);
>  	dprintf("%s: %x:%x config_size %llx, DDF structure is %llx blocks\n",
> -		__func__, dl->major, dl->minor, cfs, dl->size-cfs);
> +		__func__, dl->major, dl->minor,
> +		(unsigned long long)cfs, (unsigned long long)(dl->size-cfs));
>  }
>  
>  /* Add a device to a container, either while creating it or while


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

      reply	other threads:[~2014-08-04 23:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-04  9:43 [PATCH] cast print arguments in super-ddf.c Michel Normand
2014-08-04 14:53 ` [PATCH] V2 " Michel Normand
2014-08-04 23:00   ` NeilBrown [this message]

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=20140805090055.2b0b6dd5@notabene.brown \
    --to=neilb@suse.de \
    --cc=Jes.Sorensen@redhat.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=menantea@linux.vnet.ibm.com \
    --cc=normand@linux.vnet.ibm.com \
    /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).