]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
super-intel.c: use %zu specifier for printf of size_t
authorLuca Berra <bluca@comedia.it>
Sat, 30 Jan 2010 09:59:29 +0000 (10:59 +0100)
committerNeilBrown <neilb@suse.de>
Sun, 31 Jan 2010 22:15:35 +0000 (09:15 +1100)
Fix compile warning when size_t is not a long.

Acked-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Luca Berra <bluca@vodka.it>
Signed-off-by: NeilBrown <neilb@suse.de>
super-intel.c

index fcf438c17e7530123f4b3af0ce29919314aecaa4..91479a23b0ecf21c33da8d90c1715467f5ce9c8d 100644 (file)
@@ -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;
                }