Date: Sat, 7 Nov 2020 01:32:16 +0000 (UTC) From: Mateusz Guzik <mjg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r367438 - head/sys/kern Message-ID: <202011070132.0A71WGiE029921@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mjg Date: Sat Nov 7 01:32:16 2020 New Revision: 367438 URL: https://svnweb.freebsd.org/changeset/base/367438 Log: malloc: tweak the version check in r367432 to include type name While here fix a whitespace problem. Modified: head/sys/kern/kern_malloc.c Modified: head/sys/kern/kern_malloc.c ============================================================================== --- head/sys/kern/kern_malloc.c Fri Nov 6 23:37:59 2020 (r367437) +++ head/sys/kern/kern_malloc.c Sat Nov 7 01:32:16 2020 (r367438) @@ -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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202011070132.0A71WGiE029921>