Thread (3 messages) 3 messages, 3 authors, 2010-01-31

Re: [PATCH 1/1] super-intel.c: use %zu specifier for printf of size_t

From: Neil Brown <hidden>
Date: 2010-01-31 22:17:51

On Sat, 30 Jan 2010 10:59:29 +0100
Luca Berra [off-list ref] wrote:
quoted hunk ↗ jump to hunk
Signed-off-by: Luca Berra <redacted>
---
  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;
  		}

Applied, thanks.

NeilBrown
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help