svn commit: r335146 - head/sys/powerpc/aim

Justin Hibbits jhibbits at FreeBSD.org
Thu Jun 14 16:01:12 UTC 2018


Author: jhibbits
Date: Thu Jun 14 16:01:11 2018
New Revision: 335146
URL: https://svnweb.freebsd.org/changeset/base/335146

Log:
  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.

Modified:
  head/sys/powerpc/aim/moea64_native.c

Modified: head/sys/powerpc/aim/moea64_native.c
==============================================================================
--- head/sys/powerpc/aim/moea64_native.c	Thu Jun 14 15:04:49 2018	(r335145)
+++ head/sys/powerpc/aim/moea64_native.c	Thu Jun 14 16:01:11 2018	(r335146)
@@ -453,7 +453,7 @@ moea64_bootstrap_native(mmu_t mmup, vm_offset_t kernel
 	 */
 
 	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);
 	rw_init(&moea64_eviction_lock, "pte eviction");
 


More information about the svn-src-head mailing list