Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Jun 2018 16:01:11 +0000 (UTC)
From:      Justin Hibbits <jhibbits@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r335146 - head/sys/powerpc/aim
Message-ID:  <201806141601.w5EG1Bqj053648@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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");
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806141601.w5EG1Bqj053648>