linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] super-intel.c: use %zu specifier for printf of size_t
@ 2010-01-30  9:59 Luca Berra
  2010-01-31 19:56 ` Dan Williams
  2010-01-31 22:17 ` Neil Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Luca Berra @ 2010-01-30  9:59 UTC (permalink / raw)
  To: Neil Brown; +Cc: Dan Williams, linux-raid


Signed-off-by: Luca Berra <bluca@vodka.it>
---
  super-intel.c |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/super-intel.c b/super-intel.c
index fcf438c..91479a2 100644
--- a/super-intel.c
+++ b/super-intel.c
@@ -4076,7 +4076,7 @@ static struct mdinfo *container_content_imsm(struct supertype *st)
  
  		this = malloc(sizeof(*this));
  		if (!this) {
-			fprintf(stderr, Name ": failed to allocate %lu bytes\n",
+			fprintf(stderr, Name ": failed to allocate %zu bytes\n",
  				sizeof(*this));
  			break;
  		}
-- 
Luca Berra -- bluca@comedia.it
         Communication Media & Services S.r.l.
  /"\
  \ /     ASCII RIBBON CAMPAIGN
   X        AGAINST HTML MAIL
  / \

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] super-intel.c: use %zu specifier for printf of size_t
  2010-01-30  9:59 [PATCH 1/1] super-intel.c: use %zu specifier for printf of size_t Luca Berra
@ 2010-01-31 19:56 ` Dan Williams
  2010-01-31 22:17 ` Neil Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Dan Williams @ 2010-01-31 19:56 UTC (permalink / raw)
  To: Neil Brown, Dan Williams, linux-raid

On Sat, Jan 30, 2010 at 2:59 AM, Luca Berra <bluca@comedia.it> wrote:
>
> Signed-off-by: Luca Berra <bluca@vodka.it>

Acked-by: Dan Williams <dan.j.williams@intel.com>

It's obvious but changelog could say:

     Fix compile warning when size_t is not a long.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] super-intel.c: use %zu specifier for printf of size_t
  2010-01-30  9:59 [PATCH 1/1] super-intel.c: use %zu specifier for printf of size_t Luca Berra
  2010-01-31 19:56 ` Dan Williams
@ 2010-01-31 22:17 ` Neil Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Neil Brown @ 2010-01-31 22:17 UTC (permalink / raw)
  To: Luca Berra; +Cc: Dan Williams, linux-raid

On Sat, 30 Jan 2010 10:59:29 +0100
Luca Berra <bluca@comedia.it> wrote:

> 
> Signed-off-by: Luca Berra <bluca@vodka.it>
> ---
>   super-intel.c |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/super-intel.c b/super-intel.c
> index fcf438c..91479a2 100644
> --- a/super-intel.c
> +++ b/super-intel.c
> @@ -4076,7 +4076,7 @@ static struct mdinfo *container_content_imsm(struct supertype *st)
>   
>   		this = malloc(sizeof(*this));
>   		if (!this) {
> -			fprintf(stderr, Name ": failed to allocate %lu bytes\n",
> +			fprintf(stderr, Name ": failed to allocate %zu bytes\n",
>   				sizeof(*this));
>   			break;
>   		}


Applied, thanks.

NeilBrown

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-01-31 22:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-30  9:59 [PATCH 1/1] super-intel.c: use %zu specifier for printf of size_t Luca Berra
2010-01-31 19:56 ` Dan Williams
2010-01-31 22:17 ` Neil Brown

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).