Using the correct format string(%zu) for size_t type. This should fix 64

bits builds.

Submitted by:	Garrett Cooper <yanegomi@gmail.com>
This commit is contained in:
Tai-hwa Liang 2011-06-16 15:35:12 +00:00
parent 69c488cdc6
commit c1434464b8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=223151

View File

@ -110,7 +110,7 @@ Free(void *ptr, const char *file, int line)
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