Luca Berra: super-intel.c: use %zu specifier for printf of size_t
Martin F. Krafft
madduck at alioth.debian.org
Mon May 24 09:20:44 UTC 2010
Module: mdadm
Branch: upstream
Commit: cf1be220e276285bda849e3d8f924fca6322fc05
URL: http://git.debian.org/?p=pkg-mdadm/mdadm.git;a=commit;h=cf1be220e276285bda849e3d8f924fca6322fc05
Author: Luca Berra <bluca at comedia.it>
Date: Sat Jan 30 10:59:29 2010 +0100
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 <dan.j.williams at intel.com>
Signed-off-by: Luca Berra <bluca at vodka.it>
Signed-off-by: NeilBrown <neilb at suse.de>
---
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;
}
More information about the pkg-mdadm-commits
mailing list