Fix CTR formatting for moea64_native bootstrap

On very large memory systems 'size' can become 2GB or larger, resulting in a
negative value being formatted.  Also, moea64_pteg_count is already a long, so
format it as such.
This commit is contained in:
jhibbits 2018-06-14 16:01:11 +00:00
parent 82a0bde6bd
commit 872cdad5d6

View File

@ -453,7 +453,7 @@ moea64_bootstrap_native(mmu_t mmup, vm_offset_t kernelstart,
*/ */
size = moea64_pteg_count * sizeof(struct lpteg); size = moea64_pteg_count * sizeof(struct lpteg);
CTR2(KTR_PMAP, "moea64_bootstrap: %d PTEGs, %d bytes", CTR2(KTR_PMAP, "moea64_bootstrap: %lu PTEGs, %lu bytes",
moea64_pteg_count, size); moea64_pteg_count, size);
rw_init(&moea64_eviction_lock, "pte eviction"); rw_init(&moea64_eviction_lock, "pte eviction");