malloc: tweak the version check in r367432 to include type name

While here fix a whitespace problem.
This commit is contained in:
Mateusz Guzik 2020-11-07 01:32:16 +00:00
parent ace4339468
commit e25d8b67c3

View file

@ -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);