From: Luca Berra Date: Sat, 30 Jan 2010 09:59:29 +0000 (+0100) Subject: super-intel.c: use %zu specifier for printf of size_t X-Git-Tag: mdadm-3.1.2~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf1be220e276285bda849e3d8f924fca6322fc05;p=thirdparty%2Fmdadm.git 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 --- 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; }