super-intel.c: use %zu specifier for printf of size_t
PATCH 1/1 super-intel.c: use %zu specifier for printf of size_t
Signed-off-by Luca Berra <[email protected]>
--- super-intel.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
super-intel.c +1 -1
@@ -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 ; }
Signature · 6 lines
Luca Berra -- [email protected] Communication Media & Services S.r.l. /"\ \ / ASCII RIBBON CAMPAIGN X AGAINST HTML MAIL / \
Quoted 2 lines · Luca Berra
Signed-off-by Luca Berra <[email protected]>
Acked-by Dan Williams <[email protected]>
It's obvious but changelog could say:
Fix compile warning when size_t is not a long.
Neil Brown
AppliedQuoted 11 lines · On Sat, 30 Jan 2010 10:59:29 +0100 Luca Berra <[email protected]> wrote:
Signed-off-by Luca Berra <[email protected]>--- super-intel.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)super-intel.c +0
-0
super-intel.c static struct mdinfo *container_content_imsm(struct supertype *st) · line 4082
Quoted 8 lines
super-intel.c +1
-1@@ -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