mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-02 23:43:25 +00:00
Print "previous type" correctly when INVARIANTS is defined.
Reviewed by: current@FreeBSD.org
This commit is contained in:
parent
c3e1da6b96
commit
dc76063419
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=58063
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user