Re: [PATCH 1/1] super-intel.c: use %zu specifier for printf of size_t
From: Neil Brown <hidden>
Date: 2010-01-31 22:17:51
From: Neil Brown <hidden>
Date: 2010-01-31 22:17:51
On Sat, 30 Jan 2010 10:59:29 +0100 Luca Berra [off-list ref] wrote:
Signed-off-by: Luca Berra <redacted> --- 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