mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
malloc: tweak the version check in r367432 to include type name
While here fix a whitespace problem.
This commit is contained in:
parent
ace4339468
commit
e25d8b67c3
1 changed files with 3 additions and 3 deletions
|
|
@ -1201,7 +1201,7 @@ mallocinit(void *dummy)
|
|||
NULL, NULL, NULL, NULL,
|
||||
#endif
|
||||
UMA_ALIGN_PTR, UMA_ZONE_MALLOC);
|
||||
}
|
||||
}
|
||||
for (;i <= size; i+= KMEM_ZBASE)
|
||||
kmemsize[i >> KMEM_ZSHIFT] = indx;
|
||||
}
|
||||
|
|
@ -1218,8 +1218,8 @@ malloc_init(void *data)
|
|||
|
||||
mtp = data;
|
||||
if (mtp->ks_version != M_VERSION)
|
||||
panic("malloc_init: unsupported malloc type version %lu",
|
||||
mtp->ks_version);
|
||||
panic("malloc_init: type %s with unsupported version %lu",
|
||||
mtp->ks_shortdesc, mtp->ks_version);
|
||||
|
||||
mtip = &mtp->ks_mti;
|
||||
mtip->mti_stats = uma_zalloc_pcpu(mt_stats_zone, M_WAITOK | M_ZERO);
|
||||
|
|
|
|||
Loading…
Reference in a new issue