svn commit: r223151 - head/lib/libstand

Tai-hwa Liang avatar at FreeBSD.org
Thu Jun 16 15:35:12 UTC 2011


Author: avatar
Date: Thu Jun 16 15:35:12 2011
New Revision: 223151
URL: http://svn.freebsd.org/changeset/base/223151

Log:
  Using the correct format string(%zu) for size_t type.  This should fix 64
  bits builds.
  
  Submitted by:	Garrett Cooper <yanegomi at gmail.com>

Modified:
  head/lib/libstand/zalloc_malloc.c

Modified: head/lib/libstand/zalloc_malloc.c
==============================================================================
--- head/lib/libstand/zalloc_malloc.c	Thu Jun 16 12:57:33 2011	(r223150)
+++ head/lib/libstand/zalloc_malloc.c	Thu Jun 16 15:35:12 2011	(r223151)
@@ -110,7 +110,7 @@ Free(void *ptr, const char *file, int li
 	    return;
 	}
 	if (*((signed char *)res + res->ga_Bytes - 1) != -2)
-	    panic("free: guard2 fail @ %p + %d from %s:%d", ptr, res->ga_Bytes - MALLOCALIGN, file, line);
+	    panic("free: guard2 fail @ %p + %zu from %s:%d", ptr, res->ga_Bytes - MALLOCALIGN, file, line);
 	*((signed char *)res + res->ga_Bytes - 1) = -1;
 #endif
 


More information about the svn-src-head mailing list