From cf1be220e276285bda849e3d8f924fca6322fc05 Mon Sep 17 00:00:00 2001 From: Luca Berra Date: Sat, 30 Jan 2010 10:59:29 +0100 Subject: [PATCH] super-intel.c: use %zu specifier for printf of size_t Fix compile warning when size_t is not a long. Acked-by: Dan Williams Signed-off-by: Luca Berra Signed-off-by: NeilBrown --- super-intel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/super-intel.c b/super-intel.c index fcf438c1..91479a23 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; } -- 2.39.2