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 <yaneg...@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 _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"