Print "previous type" correctly when INVARIANTS is defined.

Reviewed by:	current@FreeBSD.org
This commit is contained in:
Jun Kuriyama 2000-03-14 14:58:04 +00:00
parent c3e1da6b96
commit dc76063419
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=58063

View File

@ -234,7 +234,7 @@ malloc(size, type, flags)
kbp->kb_next = ((struct freelist *)va)->next;
#ifdef INVARIANTS
freep = (struct freelist *)va;
savedtype = (const char *) type->ks_shortdesc;
savedtype = (const char *) freep->type->ks_shortdesc;
#if BYTE_ORDER == BIG_ENDIAN
freep->type = (struct malloc_type *)WEIRD_ADDR >> 16;
#endif